You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@ The downside of the `Closed.Coerce` class is that you are not able to provide mo
175
175
176
176
### Debugging
177
177
178
-
#### `NoProblem.Open`
178
+
#### `NoProblem.Open.Coerce`
179
179
180
180
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:
181
181
@@ -202,12 +202,12 @@ and we can get quite informative compile time error message with property path l
202
202
parts of your value. Something like `[] ∷ Array Int` or `Nothing ∷ Maybe String`.
203
203
```
204
204
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.
206
206
207
-
#### `NoProblem.Closed`
207
+
#### `NoProblem.Closed.Coerce`
208
208
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.__`".
0 commit comments