Commit 247014e 1 parent 6b9bb4a commit 247014e Copy full SHA for 247014e
File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## v4.0.1
4
+
5
+ - Allow the type of ` read* ` functions to be visibly applied (#24 by @postsolar )
6
+
3
7
## v4.0.0
4
8
- Replace ` bigints ` dependency with ` js-bigints ` so that no more external npm dependency is needed (#11 by @sigma-andex )
5
9
Original file line number Diff line number Diff line change @@ -90,15 +90,15 @@ type E a = Either MultipleErrors a
90
90
-- | Read a JSON string to a type `a` while returning a `MultipleErrors` if the
91
91
-- | parsing failed.
92
92
readJSON ∷
93
- ∀ a .
93
+ ∀ @ a .
94
94
ReadForeign a ⇒
95
95
String →
96
96
E a
97
97
readJSON = runExcept <<< (readImpl <=< parseJSON)
98
98
99
99
-- | Read a JSON string to a type `a` using `F a`. Useful with record types.
100
100
readJSON' ∷
101
- ∀ a .
101
+ ∀ @ a .
102
102
ReadForeign a ⇒
103
103
String →
104
104
F a
@@ -107,7 +107,7 @@ readJSON' = readImpl <=< parseJSON
107
107
-- | Read a JSON string to a type `a` while returning `Nothing` if the parsing
108
108
-- | failed.
109
109
readJSON_ ∷
110
- ∀ a .
110
+ ∀ @ a .
111
111
ReadForeign a ⇒
112
112
String →
113
113
Maybe a
@@ -147,22 +147,22 @@ write = writeImpl
147
147
148
148
-- | Read a Foreign value to a type
149
149
read ∷
150
- ∀ a .
150
+ ∀ @ a .
151
151
ReadForeign a ⇒
152
152
Foreign →
153
153
E a
154
154
read = runExcept <<< readImpl
155
155
156
156
read' ∷
157
- ∀ a .
157
+ ∀ @ a .
158
158
ReadForeign a ⇒
159
159
Foreign →
160
160
F a
161
161
read' = readImpl
162
162
163
163
-- | Read a Foreign value to a type, as a Maybe of type
164
164
read_ ∷
165
- ∀ a .
165
+ ∀ @ a .
166
166
ReadForeign a ⇒
167
167
Foreign →
168
168
Maybe a
You can’t perform that action at this time.
0 commit comments