|
GHC panic/loop (mdo): msg#00002lang.haskell.glasgow.bugs
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: visibility of instances (was: Bug in compiling large projects ?), Martin Erwig |
|---|---|
| Next by Date: | ghc.exe: panic! (the `impossible' happened, GHC version 6.3): urk, Satnam Singh |
| Previous by Thread: | Re: visibility of instances (was: Bug in compiling large projects ?), Martin Erwig |
| Next by Thread: | RE: GHC panic/loop (mdo), Simon Peyton-Jones |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |