-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
type: enhancementA new feature or addition.A new feature or addition.
Description
Something like this:
eof :: forall a. Parser (List a) Unit
eof =
get >>= \(input :: List a) ->
unless (null input) (fail "expected eof")I guess it would go into `Text.Parsing.Parser.Token?
By the way, is it right that we need that type annotation on input? Without it, type unification fails.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: enhancementA new feature or addition.A new feature or addition.