GHCi panics when attempting to load archives
If I have the following module:
module Numeric.Integer ( is_prime_ats ) where import Foreign.C foreign import ccall is_prime_ats :: CInt -> CBool
and I attempt to open it in GHCi with the following
/opt/ghc/bin/ghci-8.4.2 -lnumbertheory -L../dist-newstyle/lib Numeric.Integer
(with a file
I get a panic and a request to open a bug report. I am guessing that at the least this supposed to be a different error message.
GHCi, version 184.108.40.20680329: http://www.haskell.org/ghc/ :? for help ghc: panic! (the 'impossible' happened) (GHC version 220.127.116.1180329 for x86_64-unknown-linux): Loading archives not supported Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
If I instead place a shared library (i.e.
../dist-newstyle/lib) then this does not panic.