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

Compilation had errors

It's no surprise since `ghc -cpp -E test.hs` is

{-# LINE 1 "test.hs" -}
{-# LINE 1 "test.hs" -}
module Main where


main 
  = print test

test = "uncurry f c = case c of \                <1> a b -> f a b;"

Using a double `\` at the beginning of the string gap circumvents this
behavior, but then of course `ghc -c test.hs` will fail.

Marko
-- 
Marko Sch�tz            [EMAIL PROTECTED]
http://www.ki.informatik.uni-frankfurt.de/~marko/

Reply via email to