PARSER: improve style
This commit is contained in:
parent
70665e4b29
commit
9c724ec479
@ -69,12 +69,12 @@ posInt = MkParser f
|
||||
|
||||
-- |Creates a Parser that accepts positive integers.
|
||||
posDouble :: Parser Double
|
||||
posDouble = read <$> (
|
||||
posDouble = (read <$>) $
|
||||
(\x y z -> x ++ [y] ++ z) <$>
|
||||
(MkParser f) <*>
|
||||
(char '.') <*>
|
||||
(MkParser f) <|>
|
||||
(MkParser f))
|
||||
MkParser f <*>
|
||||
char '.' <*>
|
||||
MkParser f <|>
|
||||
MkParser f
|
||||
where
|
||||
f xs
|
||||
| null ns = Nothing
|
||||
|
Loading…
Reference in New Issue
Block a user