Bugs item #753377, was opened at 2003-06-12 15:51
Message generated for change (Comment added) made by simonpj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=753377&group_id=8032
Category: Compiler
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Wojciech Fraczak (fraczak)
Assigned to: Nobody/Anonymous (nobody)
Summary: ghc-6.0: panic on a simple example
Initial Comment:
I've just installed ghc-6 and started to play with it.
I defined an infinite list of integers in the following
way:
-- 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
element:
*Main> let (a:x) = il in a
ghc-6.0: panic! (the `impossible' happened, GHC version
6.0):
getLinkDeps No iface for [<pkg>]GHCziErr
Please report it as a compiler bug to
[EMAIL PROTECTED],
or http://sourceforge.net/projects/ghc/.
----------------------------------------------------------------------
>Comment By: Simon Peyton Jones (simonpj)
Date: 2003-06-12 16:51
Message:
Logged In: YES
user_id=50165
An embarassing error, now fixed
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=753377&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs