[Haskell-cafe] Re: Scheme in Haskell, Parsec Example, how to add scheme comments

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Thu Nov 22 00:55:21 EST 2007

On Nov 22, 2007, at 0:50 , Berlin Brown wrote:

> token :: Parser -> Parser String
> token p = do r <- p
>                   whiteSpace
>                   return $ String r

You have an indentation problem:  whiteSpace and return should be at  
the level of "r", not "p".

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list