You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instance Applicative ParseResult where
pure ::
a
-> ParseResult a
pure a = undefined
(<*>) ::
ParseResult (a->b)
-> ParseResult a
-> ParseResult b
(<*>)= undefined
Applicative style of parsing will make the whole module cleaner.
I would also move instances of different classes directly below blbindParser so that they can be used in the subsequent exercises.
I could rework the module if this change would be accepted.
The text was updated successfully, but these errors were encountered: