I’m running GHC 6.4 on
Windows XP Professional. In GHCi, I try to load the following source file (also
attached as Bad.hs)
module Paper
where
data Hash =
Sha256 String
class
HasHash
where
hasHash :: HasHash -> Hash
and I get the following
panic.
___ ___ _
/ _ \
/\ /\/ __(_)
/ /_\//
/_/ / / | | GHC Interactive, version 6.4,
for Haskell 98.
/ /_\\/ __
/ /___| |
http://www.haskell.org/ghc/
\____/\/
/_/\____/|_| Type :? for help.
Loading
package base-1.0 ... linking ... done.
Prelude>
:cd Policy
Prelude>
:load Bad
Compiling
Paper (
Bad.hs, interpreted )
ghc.exe:
panic! (the `impossible' happened, GHC version 6.4):
ds_app_type Paper.HasHash{tc r2vG} []
Please report
it as a compiler bug to glasgow-haskell-bugs@xxxxxxxxxxx,
or
http://sourceforge.net/projects/ghc/.
>
My typo is obvious, of
course, but I thought I’d report the panic as requested.
Cheers,
John