Re: Running a "final" finaliser

2004-01-05 Thread Alastair Reid
> > I'm afraid I still don't fully understand why Haskell > > finalisers are unsafe or why (if) calling Haskell from a C finaliser > > (which then called C land again) would be any safer. The FFI standard doesn't say that calling C finalizers is unsafe (which would imply that the finalizers pote

Re: -xc giving very little information

2004-01-05 Thread Ian Lynagh
On Mon, Jan 05, 2004 at 11:35:37AM +, Malcolm Wallace wrote: > > Unfortunately, Hat is currently limited to ghc version 5.04.3 (i.e. not > yet updated to cope with the 6.x series), The Debian package works with ghc6.2 (at least the Insort example works for me - I haven't done more with it tha

RE: Running a "final" finaliser

2004-01-05 Thread Simon Marlow
> The other complication I can see is that ForeignPtr finalisers can't > be Haskell. So I have to call the Haskell finalisation from C. > Is that safe? I'm afraid I still don't fully understand why Haskell > finalisers are unsafe or why (if) calling Haskell from a C finaliser > (which then called C

RE: GHC 6.2 breaks multiline string literals

2004-01-05 Thread Simon Marlow
> 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? Just to c

RE: -keep-hc-files with --make?

2004-01-05 Thread Simon Marlow
> It seems that with GHC 6.2, -keep-hc-files and --make conflict: GHC > deletes the HC files it makes. I found an old bug report about this, > with a note from one of the developers claiming to have fixed > this, but > at least here the bug is reproduceable (a regression, perhaps?). > > This i

RE: -xc giving very little information

2004-01-05 Thread Simon Marlow
> 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 yi

Re: -xc giving very little information

2004-01-05 Thread Malcolm Wallace
Stefan Reich <[EMAIL PROTECTED]> writes: > 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.ha

-keep-hc-files with --make?

2004-01-05 Thread Antti-Juhani Kaijanaho
Hi, It seems that with GHC 6.2, -keep-hc-files and --make conflict: GHC deletes the HC files it makes. I found an old bug report about this, with a note from one of the developers claiming to have fixed this, but at least here the bug is reproduceable (a regression, perhaps?). This is on up-to-d

RE: classes and template haskell (bug?)

2004-01-05 Thread Simon Peyton-Jones
Indeed, this is a bug. Well, two bugs actually. I've just fixed them. Thanks for the report. (You probably want to send TH-related mail to [EMAIL PROTECTED], and other GHC bugs to [EMAIL PROTECTED]) Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-users- | [