bug

Simon Peyton-Jones simonpj at microsoft.com
Tue Jul 1 04:03:29 EDT 2003


Yes, it's a bug.  Check out:
	
http://www.haskell.org/pipermail/glasgow-haskell-bugs/2003-June/003330.h
tml

| -----Original Message-----
| From: glasgow-haskell-bugs-admin at haskell.org
[mailto:glasgow-haskell-bugs-admin at haskell.org] On
| Behalf Of Paul T. Graunke
| Sent: 30 June 2003 16:49
| To: glasgow-haskell-bugs at haskell.org
| Subject: bug
| 
| There seems to be a mistake in the handling of case, no?
| 
| Thanks,
| 
| Paul
| 
| $ ghci
|   ___         ___ _
|  / _ \ /\  /\/ __(_)
| / /_\// /_/ / /  | |      GHC Interactive, version 6.0, for Haskell
98.
| / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
| \____/\/ /_/\____/|_|      Type :? for help.
| 
| Loading package base ... linking ... done.
| Prelude> case "a" of "a" -> True
| True
| Prelude> case "b" of "b" -> True
| True
| Prelude> case "ab" of "ab" -> True
| 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
glasgow-haskell-bugs at haskell.org,
| or http://sourceforge.net/projects/ghc/.
| 
| 
| Prelude> case "a" of "ab" -> True
| 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
glasgow-haskell-bugs at haskell.org,
| or http://sourceforge.net/projects/ghc/.
| 
| 
| Prelude> case "ab" of "a" -> True
| 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
glasgow-haskell-bugs at haskell.org,
| or http://sourceforge.net/projects/ghc/.
| 
| 
| Prelude> case "ab" of ('a':'b':[]) -> True
| 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
glasgow-haskell-bugs at haskell.org,
| or http://sourceforge.net/projects/ghc/.
| 
| 
| Prelude> let x = "ab"
| Prelude> case x of ('a':'b':[]) -> True
| 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
glasgow-haskell-bugs at haskell.org,
| or http://sourceforge.net/projects/ghc/.
| 
| 
| Prelude>
| 
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs





More information about the Glasgow-haskell-bugs mailing list