[Haskell-cafe] Parsec question

Andrew Coppin andrewcoppin at btinternet.com
Sun May 27 08:00:37 EDT 2007


Malcolm Wallace wrote:
> Andrew Coppin <andrewcoppin at btinternet.com> writes:
>   
>> Any hints?
>>     
>
>   wholething = many comment
>
>   comment = do
>       fmap Left  $ (linecomment `onFail` nestedcomment)
>          `onFail`
>       fmap Right $ noncomment
>   

Haskell: The language of truely scary people(tm) :-}


Thanks, I'll give that a go...



More information about the Haskell-Cafe mailing list