You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
856 B
856 B
24 Parser Combination
24.3 Parsing practise
24.4 Exercise: Unit of Success
(>>)
is actually (*>)
from Applicative
and Applicative
also has (<*)
which has type Applicative f => f a -> f b -> f a
So the solution here is:
integer <* eof
24.6 Exercise: Try Try
24.11 Chapter Exercises
- src/SemVer.hs
- src/PosInt.hs
- src/PosInt.hs
- src/PhoneNumber.hs
- src/ParseLog.hs
- src/IPAddress.hs
- src/IPAddress.hs
- src/IPAddress.hs
- src/IPAddress.hs
- Probably not going to finish this at this time. It's a lot of the same but just a lot more.