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)
|
| otherwise = Just (read ns, rest)
|
||||||
where (ns, rest) = span isDigit xs
|
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 :: Parser Double
|
||||||
posDouble = (read <$>) $
|
posDouble = (read <$>) $
|
||||||
(\x y z -> x ++ [y] ++ z) <$>
|
(\x y z -> x ++ [y] ++ z) <$>
|
||||||
|
Loading…
Reference in New Issue
Block a user