GHC 6.2 breaks multiline string literals

2003-12-26 Thread Stefan Reich
This worked in GHC 6.0.1:

multilineLiteral = "
  line1
  line2"
But doesn't work in GHC 6.2. Is this a bug or rather a bugfix?

Anyway, I found it very convenient to embed verbatim string blocks this 
way. Is there maybe another way to achieve the same thing?

Thanks in advance,
-Stefan
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


-xc giving very little information

2003-12-26 Thread Stefan Reich
A complex program of mine fails with this message:

	Fail: Maybe.fromJust: Nothing

I tried to extract more information about the error by compiling with 
-prof -auto-all and running the program with +RTS -xc, as advised on 
http://www.haskell.org/hawiki/TipsAndTricks . This yielded exactly one 
additional line:

.
Fail: Maybe.fromJust: Nothing
(Same result for GHC 6.0.1 and 6.2.)

Is there another option I have to use to get a full stack trace? Or is 
my longing for stack traces a side-effect of writing too much Java code 
that I have to overcome? :)

-Stefan

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: GHC 6.2 breaks multiline string literals

2003-12-26 Thread Ferenc Wagner
Stefan Reich <[EMAIL PROTECTED]> writes:

> multilineLiteral = "
>line1
>line2"

Use string gaps (see 2.6 in the Report):

multilineLiteral = "\
\   line1\n\
\   line2"

-- 
Feri.
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users