Skip to content

Commit ce7c85c

Browse files
committed
Improve docs
1 parent 6b8ea09 commit ce7c85c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ The downside of the `Closed.Coerce` class is that you are not able to provide mo
175175

176176
### Debugging
177177

178-
#### `NoProblem.Open`
178+
#### `NoProblem.Open.Coerce`
179179

180180
I try to provide some debug info which should help when there is a type mismatch. For example this kind of polymorphic array value in the `z` field causes problem:
181181

@@ -202,12 +202,12 @@ and we can get quite informative compile time error message with property path l
202202
parts of your value. Something like `[] ∷ Array Int` or `Nothing ∷ Maybe String`.
203203
```
204204
205-
I'm trying to cover as many case as I can but it is of course possible that you are going to get just generic complier error.
205+
I'm trying to cover as many cases as I can but it is of course possible that you are going to get just generic complier error.
206206
207-
#### `NoProblem.Closed`
207+
#### `NoProblem.Closed.Coerce`
208208
209-
In the case of `Closed` constraint errors I think that I'm not able to properly format and render errors but I have included the path of the properties in the typeclass parameters so it can be somewhat extracted in the case of error. It is provided in the reverse order.
210-
In the below case we see that the unification problem is related to the property type on the path: "`x.Array.__`".
209+
In the case of `Closed` constraint errors I think that I'm not able to properly format and render errors like I've done in the previous case. So I have included the type path of the properties in the typeclass parameters and it can be somewhat extracted from the generic error. The path is currently provided in the reverse order.
210+
In the below case we see that the unification problem is related to the property type on the path `(SCons "Array" (SCons "x" SNil))` which translates into something like "`x.Array.__`".
211211
212212
```
213213

0 commit comments

Comments
 (0)