Opened 14 years ago

Closed 14 years ago

Last modified 48 years ago

#150 closed bug (Fixed)

ghc-6.0: panic on a simple example

Reported by: fraczak Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


I've just installed ghc-6 and started to play with it. 
I defined an infinite list of integers in the following
-- increment a list of integer by one
 incl :: [ Integer ] -> [ Integer ]
 incl [] = []
 incl (x:l) = (x+1:(incl l))
-- infinite list of integers
 il = ( 1 : (incl il))

the list prints nicely, however ghc has problems with
this simple pattern-matching extraction of the first

*Main> let (a:x) = il in a
ghc-6.0: panic! (the `impossible' happened, GHC version
        getLinkDeps No iface for [<pkg>]GHCziErr

Please report it as a compiler bug to,

Change History (1)

comment:1 Changed 14 years ago by simonpj

Status: assignedclosed
Logged In: YES 

An embarassing error, now fixed
Note: See TracTickets for help on using tickets.