PARSER: improve haddock comments
This commit is contained in:
parent
9c724ec479
commit
d0e8c85a8d
@ -67,7 +67,8 @@ posInt = MkParser f
|
||||
| otherwise = Just (read ns, rest)
|
||||
where (ns, rest) = span isDigit xs
|
||||
|
||||
-- |Creates a Parser that accepts positive integers.
|
||||
-- |Creates a Parser that accepts positive doubles.
|
||||
-- Both 131.31 and 132 are valid.
|
||||
posDouble :: Parser Double
|
||||
posDouble = (read <$>) $
|
||||
(\x y z -> x ++ [y] ++ z) <$>
|
||||
|
Loading…
Reference in New Issue
Block a user