Skip to content

Commit bac1368

Browse files
committed
docs: add parsecToJSONParser docs
1 parent 64f3229 commit bac1368

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Text/Megaparsec/Utils.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ numParser = (char '-' >> negate <$> posNumParser) <|> posNumParser
8282

8383
-- | Convert a 'Parsec' parser into a 'Parser' suited for 'FromJSON' instances.
8484
parsecToJSONParser
85+
-- ^ Parser name.
8586
:: String
87+
-- ^ Parser.
8688
-> Parsec Void String a
89+
-- ^ Input value.
8790
-> Value
8891
-> Parser a
8992
parsecToJSONParser n p =

0 commit comments

Comments
 (0)