Koen Claessen <[EMAIL PROTECTED]> wrote, > When I load tha Yahu package [1] in GHCi 5.02 on a SParc > running Solaris, I get the following message: > > >>> > scooter> bin/yahu.new Resources/YahuNew/Examples/Balls.hs > ___ ___ _ > / _ \ /\ /\/ __(_) > / /_\// /_/ / / | | GHC Interactive, version 5.02, > for Haskell 98. > / /_\\/ __ / /___| | http://www.haskell.org/ghc/ > \____/\/ /_/\____/|_| Type :? for help. > > Loading package std ... linking ... done. > Loading package lang ... linking ... done. > Loading object (dynamic) yahu ... done > final link ... done. > Compiling YahuHeap ( > /users/mdstud/afp01/Resources/YahuNew/YahuHeap.hs, > interpreted ) > Compiling YahuTk ( > /users/mdstud/afp01/Resources/YahuNew/YahuTk.hs, interpreted > ) > ghc-5.02: panic! (the `impossible' happened, GHC version > 5.02): > ByteCodeFFI.mkMarshalCode_wrk(sparc) C_ > > Please report it as a compiler bug to > [EMAIL PROTECTED], > or http://sourceforge.net/projects/ghc/. > <<< > > It seems something is wrong with the FFI!
I vaguely remember that Julian wrote that the interpreter support for the FFI is limited to x86 for the moment. You still should be fine if you compile all modules including a foreign import declaration. Cheers, Manuel _______________________________________________ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs