[Haskell-cafe] An irritating Parsec problem

Philippa Cowderoy flippa at flippac.org
Wed Oct 15 15:41:24 EDT 2008


On Wed, 15 Oct 2008, Andrew Coppin wrote:

> Philippa Cowderoy wrote:
> > expressions = do es <- many1 expression
> >                  eof
> >                  return es
> >   
> 
> Ah - so "eof" fails if it isn't the end of the input?
> 

eof = notFollowedBy anyChar

(assuming I've got the identifiers right, that's the actual definition 
too)

-- 
flippa at flippac.org

Society does not owe people jobs.
Society owes it to itself to find people jobs.


More information about the Haskell-Cafe mailing list