> Comipling the following (test.hs)
> 
> module Main where
> 
> 
> main 
>   = print test
> 
> test = "uncurry f c = case c of \
> \                <1> a b -> f a b;"
> 
> with `ghc -c test.hs` does not produce an error, but with `ghc -cpp -c
> test.hs` I get 
> 
> test.hs:7: error in character literal

This is a known problem with cpp and string gaps.  It likes to treat the '\'
at the end of the line as a continuation character.  Another workaround is
to add a space after the first '\'.  There's a mention of this in the User
Guide, BTW.  Look under "options related to the C preprocessor".

Cheers,
        Simon

Reply via email to