[jhc] ./src/E/FromHs.hs:(869, 4)-(871, 30): Irrefutable pattern failed for pattern (p : ps)

John Meacham john at repetae.net
Wed Sep 9 17:33:31 EDT 2009


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/


More information about the jhc mailing list