Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Add comment for parseNat, export parseHugeIntLiteral
Browse files Browse the repository at this point in the history
  • Loading branch information
garyb committed Jun 28, 2017
1 parent ae6e154 commit 521d58a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Data/Json/Extended/Signature/Parse.purs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Data.Json.Extended.Signature.Parse
, parseBooleanLiteral
, parseDecimalLiteral
, parseIntLiteral
, parseHugeIntLiteral
, parseStringLiteral
, parseArrayLiteral
, parseMapLiteral
Expand Down Expand Up @@ -105,6 +106,11 @@ parse1000
hundreds x y z = x * 100 + y * 10 + z
tens x y = x * 10 + y

-- | This is used for parsing both `Int` and `HugeInt` values so has some extra
-- | arguments. The `n` value should be 10 in the appropriate type, used to
-- | move the place of each digit that is parsed. The `Int -> n` function
-- | should convert a digit to the appropriate type. The `Int` provided will
-- | always be in the range 0 to 9 inclusive.
parseNat
m n
. Monad m
Expand Down

0 comments on commit 521d58a

Please sign in to comment.