./src/E/FromHs.hs:(869, 4)-(871, 30): Irrefutable pattern failed for pattern (p : ps)
Hi John, I'm getting the following error now: Compiling... [ 1 of 18] Jhc.AltIO ./src/E/FromHs.hs:(869,4)-(871,30): Irrefutable pattern failed for pattern (p : ps) which is the irrefutable pattern in tinyHeads. Unfortunately, I'm still pretty clueless about debugging jhc itself. I'm not sure what this function is doing, or how to figure out which code it's working on... :( P.S. You should be able to reproduce this using a darcs get http://abridgegame.org/concurrency, and trying to build jhc/Prelude.hs. -- David Roundy
On Wed, Sep 09, 2009 at 03:37:48PM -0400, David Roundy wrote:
Hi John,
I'm getting the following error now:
Compiling... [ 1 of 18] Jhc.AltIO ./src/E/FromHs.hs:(869,4)-(871,30): Irrefutable pattern failed for pattern (p : ps)
which is the irrefutable pattern in tinyHeads. Unfortunately, I'm still pretty clueless about debugging jhc itself. I'm not sure what this function is doing, or how to figure out which code it's working on... :(
Hmmm.. this implies some odd code is making it all the way through the front end to the core conversion routines. Perhaps a bug in the desugarer? Generally, when presented with this sort of bug, I will use -flint (always use this when debugging jhc), then jhcs '-d' option to print out anything I can that might be relevant to the bug. If that doesn't make it obvious, I'll go in and modify the code to print some trace information. I'll see if I can reproduce this one though... John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/
If you have trouble reproducing this, I could email you a prepared
tarball off list... or put it somewhere to be downloaded.
David
On Wed, Sep 9, 2009 at 5:33 PM, John Meacham
On Wed, Sep 09, 2009 at 03:37:48PM -0400, David Roundy wrote:
Hi John,
I'm getting the following error now:
Compiling... [ 1 of 18] Jhc.AltIO ./src/E/FromHs.hs:(869,4)-(871,30): Irrefutable pattern failed for pattern (p : ps)
which is the irrefutable pattern in tinyHeads. Unfortunately, I'm still pretty clueless about debugging jhc itself. I'm not sure what this function is doing, or how to figure out which code it's working on... :(
Hmmm.. this implies some odd code is making it all the way through the front end to the core conversion routines. Perhaps a bug in the desugarer? Generally, when presented with this sort of bug, I will use -flint (always use this when debugging jhc), then jhcs '-d' option to print out anything I can that might be relevant to the bug. If that doesn't make it obvious, I'll go in and modify the code to print some trace information. I'll see if I can reproduce this one though...
John
-- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/ _______________________________________________ jhc mailing list jhc@haskell.org http://www.haskell.org/mailman/listinfo/jhc
-- David Roundy
participants (3)
-
David Roundy -
David Roundy -
John Meacham