|
bug: msg#00099lang.haskell.glasgow.bugs
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@xxxxxxxxxxx, 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@xxxxxxxxxxx, 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@xxxxxxxxxxx, 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@xxxxxxxxxxx, 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@xxxxxxxxxxx, or http://sourceforge.net/projects/ghc/. Prelude>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: ghc-6.0 on win32 panic, Simon Peyton-Jones |
|---|---|
| Next by Date: | small bug with :info and ids beginning with _, Hal Daume |
| Previous by Thread: | [ ghc-Bugs-763085 ] The impossible happened, SourceForge.net |
| Next by Thread: | small bug with :info and ids beginning with _, Hal Daume |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |