Skip to content

Commit e541619

Browse files
committed
Update dependencies and documentation
1 parent e0ad56a commit e541619

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
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"

docs/Data/Foreign.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ readString :: Foreign -> F String
130130

131131
Attempt 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

147155
Attempt 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

docs/Data/Foreign/Class.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ can be used to construct instances for new data structures.
2020
``` purescript
2121
instance foreignIsForeign :: IsForeign Foreign
2222
instance stringIsForeign :: IsForeign String
23+
instance charIsForeign :: IsForeign Char
2324
instance booleanIsForeign :: IsForeign Boolean
2425
instance numberIsForeign :: IsForeign Number
26+
instance intIsForeign :: IsForeign Int
2527
instance arrayIsForeign :: (IsForeign a) => IsForeign (Array a)
2628
instance nullIsForeign :: (IsForeign a) => IsForeign (Null a)
2729
instance undefinedIsForeign :: (IsForeign a) => IsForeign (Undefined a)

0 commit comments

Comments
 (0)