C Preprocessor
Bernd Brassel
bbr at informatik.uni-kiel.de
Thu Dec 6 04:43:30 EST 2007
Is it already a known problem that the preprocessor cannot cope with the
whole set of possible string declarations?
$ cat long1.hs
{-# OPTIONS -cpp #-}
s = "abc\
\defg"
main = putStrLn s
$ ghc long1.hs
long1.hs:3:14:
lexical error in string/character literal at character 'e'
$ cat long2.hs
s = "abc\
\defg"
main = putStrLn s
$ ghc long2.hs
$ a.out
abcdefg
More information about the Glasgow-haskell-users
mailing list