File tree Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 2424 " package.json"
2525 ],
2626 "dependencies" : {
27- "purescript-foldable-traversable" : " ^0.4.0" ,
28- "purescript-either" : " ^0.2.0" ,
29- "purescript-integers" : " ^0.2.0" ,
3027 "purescript-arrays" : " ^0.4.0" ,
28+ "purescript-either" : " ^0.2.0" ,
29+ "purescript-foldable-traversable" : " ^0.4.0" ,
3130 "purescript-functions" : " ^0.1.0" ,
32- "purescript-strings" : " ~0.5.3"
31+ "purescript-integers" : " ^0.2.0" ,
32+ "purescript-strings" : " ^0.6.0"
3333 },
3434 "devDependencies" : {
3535 "purescript-console" : " ^0.1.0"
Original file line number Diff line number Diff line change @@ -130,6 +130,14 @@ readString :: Foreign -> F String
130130
131131Attempt to coerce a foreign value to a ` String ` .
132132
133+ #### ` readChar `
134+
135+ ``` purescript
136+ readChar :: Foreign -> F Char
137+ ```
138+
139+ Attempt to coerce a foreign value to a ` Char ` .
140+
133141#### ` readBoolean `
134142
135143``` purescript
@@ -146,6 +154,14 @@ readNumber :: Foreign -> F Number
146154
147155Attempt to coerce a foreign value to a ` Number ` .
148156
157+ #### ` readInt `
158+
159+ ``` purescript
160+ readInt :: Foreign -> F Int
161+ ```
162+
163+ Attempt to coerce a foreign value to an ` Int ` .
164+
149165#### ` readArray `
150166
151167``` purescript
Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ can be used to construct instances for new data structures.
2020``` purescript
2121instance foreignIsForeign :: IsForeign Foreign
2222instance stringIsForeign :: IsForeign String
23+ instance charIsForeign :: IsForeign Char
2324instance booleanIsForeign :: IsForeign Boolean
2425instance numberIsForeign :: IsForeign Number
26+ instance intIsForeign :: IsForeign Int
2527instance arrayIsForeign :: (IsForeign a) => IsForeign (Array a)
2628instance nullIsForeign :: (IsForeign a) => IsForeign (Null a)
2729instance undefinedIsForeign :: (IsForeign a) => IsForeign (Undefined a)
You can’t perform that action at this time.
0 commit comments