[Haskell-cafe] Parsec bug, or...?

Martijn van Steenbergen martijn at van.steenbergen.nl
Tue Oct 13 02:33:06 EDT 2009


Brandon S. Allbery KF8NH wrote:
> My fix would be to have myPrefixOf require the prefix be terminated in 
> whatever way is appropriate (end of input, white space, operator?) 
> instead of simply accepting as soon as it gets a prefix match regardless 
> of what follows.

Maybe you can use notFollowedBy for this.

HTH,

Martijn.



More information about the Haskell-Cafe mailing list