ghci and unboxed types
Ralf Hinze
ralf at informatik.uni-bonn.de
Wed Jul 17 10:59:24 EDT 2002
Dear bug hunters,
ghci is unhappy with the attached module (stripped down version).
---
ralf/tmp> ghci -fglasgow-exts Arr.lhs
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 5.04, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base ... linking ... done.
Loading package haskell98 ... linking ... done.
Compiling Arr ( Arr.lhs, interpreted )
ghc-5.04: panic! (the `impossible' happened, GHC version 5.04):
ByteCodeGen.schemeE P_
Please report it as a compiler bug to glasgow-haskell-bugs at haskell.org,
or http://sourceforge.net/projects/ghc/.
> Leaving GHCi.
ralf/tmp> ghc -O2 -c -Wall -fglasgow-exts Arr.lhs
Arr.lhs:22:
Warning: This binding for `s1#' shadows an existing binding
Arr.lhs:24:
Warning: This binding for `s2#' shadows an existing binding
Arr.lhs:27:
Warning: This binding for `s2#' shadows an existing binding
ralf/tmp> ghci -fglasgow-exts Arr.lhs
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 5.04, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base ... linking ... done.
Loading package haskell98 ... linking ... done.
Skipping Arr ( Arr.lhs, ./Arr.o )
Ok, modules loaded: Arr.
Prelude Arr>
---
However, ghci loads precompiled code so it's not a show stopper.
Cheers, Ralf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Arr.lhs
Type: text/x-literate-haskell
Size: 1120 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20020717/7bbcf1b2/Arr.bin
More information about the Glasgow-haskell-bugs
mailing list