I am sorry for asking such a primitive question:
how to make Haskell to feed a line ?
Say, under the HUGS dialogue, we have
? "ab\ncd"
ab
cd
?
In Haskell (ghc-0.25) I tried
main = print "ab\ncd"
main = writeFile "result" "ab\ncd" exit done
and obtained ab\ncd
Thanks in ad
Not having your reply address, I could only reply to the list. :)
> how to make Haskell to feed a line ?
> In Haskell (ghc-0.25) I tried
> main = print "ab\ncd"
The output should be "ab\ncd", including the double quote,
and it seems to be the right thing expected by the standard
prelude