|
RE: GHC panic/loop (mdo): msg#00009lang.haskell.glasgow.bugs
Excellent point. A genuine bug in 6.2, I fear. I've fixed the HEAD, and added a test (mdo006) Thanks for boiling this down, Iavor. Simon | -----Original Message----- | From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx [mailto:glasgow-haskell-bugs- | bounces@xxxxxxxxxxx] On Behalf Of Iavor Diatchki | Sent: 23 December 2004 19:19 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Subject: GHC panic/loop (mdo) | | Hello, | the following program makes GHC 6.2.2 loop forever (testLoop) or panic | (testPanic). | I tried to derive small examples that illustrate the problem. | The problem seems to be related to the use of 'mdo', and it looks like it is | important that the expressoin 'f x' is repeated. | | > import Control.Monad.Fix | > main :: IO () | > main = return () | | | This makes the compiler loop. | | < testLoop _ = mdo x <- mapM undefined (f x) | < let f _ = [] | < return (f x) | | This makes the compiler panic. | | > testPanic _ = mdo x <- f x | > let f _ = return () | > f x | | Hope this helps | Iavor | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ghc.exe: panic! (the `impossible' happened, GHC version 6.3): urk, Sven Panne |
|---|---|
| Next by Date: | [ ghc-Bugs-1096068 ] Problems with binary linux distribution, SourceForge.net |
| Previous by Thread: | GHC panic/loop (mdo), Iavor Diatchki |
| Next by Thread: | ghc.exe: panic! (the `impossible' happened, GHC version 6.3): urk, Satnam Singh |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |