Skip to content

Commit 7b33c92

Browse files
Fix CI issues
1 parent 823b832 commit 7b33c92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JSON.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module JSON
1313
, toNull
1414
, toBoolean
1515
, toNumber
16+
, toInt
1617
, toString
1718
, toArray
1819
, toJArray
@@ -123,7 +124,7 @@ toNumber json = runFn7 Internal._case fail fail Just fail fail fail json
123124
-- | Converts a `JSON` `Number` into an `Int`.
124125
-- |
125126
-- | This is provided for convenience only.
126-
toInt :: Json -> Maybe Int
127+
toInt :: JSON -> Maybe Int
127128
toInt = toNumber >=> Int.fromNumber
128129

129130
-- | Converts a `JSON` value to `String` if the `JSON` is a string.

0 commit comments

Comments
 (0)