[Haskell-cafe] Pattern match failure, then inconsistent function

Ross Paterson ross at soi.city.ac.uk
Wed Aug 24 21:07:02 EDT 2005


On Mon, Aug 22, 2005 at 03:31:24PM +0100, Adam Wyner wrote:
> I am getting a "pattern match failure", and then subsequent functions
> which worked right work wrong.  I am using Hugs and Trex.  While most of
> the other functions work fine, the function "findCoordinatesUtil"
> generates an error, then misbehaves; it takes a record and searches a
> list of records to find other records in a specified relationship with
> the input function.
> [...]
> However, when I run the function on a larger list of records (here
> testList01), it generates an error message.
> 
> LexicalSemantics03> findCoordinatesUtil (giveActionFromLabel "Action33
> " testList01) testList01
> 
> Program error: pattern match failure: map_v780 (instEq_v20 instEq_v11
> Eq_== "neg-prop2") map_v780
> INTERNAL ERROR: Error in graph

This lokks like a memory management bug in Hugs, leaving the heap
corrupted so that further results are unreliable.  Please send in the full
program that triggers this, plus details of the Hugs version you're using.



More information about the Haskell-Cafe mailing list