[Haskell-cafe] Minim interpreter

Hugh Perkins hughperkins at gmail.com
Fri Jul 20 16:10:58 EDT 2007

Newbie question: why does the following give "Not in scope 'c'" for the last

string :: Parsec.Parser String
string = do c <- Parsec.letter
            do cs <- string
               return c:cs
            Parsec.<|> return [c]

(This is copied more or less rote from
http://legacy.cs.uu.nl/daan/download/parsec/parsec.html , so I'm guessing
there's some sort of command-line option I'm missing?)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070720/820b0bdc/attachment.htm

More information about the Haskell-Cafe mailing list