Problem with wxHaskell
Hello.hs is a GUI hello world program I copied and pasted off http://en.wikibooks.org/wiki/Haskell/GUI. I have wxHaskell and ghc, and my attempt to compile it gives
mark@mark-laptop:~/MyCode$ ghc -package wx Hello.hs -o bin
Binary: Int64 truncated to fit in 32 bit Int
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.4 for i386-unknown-linux):
Prelude.chr: bad argument
Meanwhile, running it off ghci gives a series of successfully linked and loaded packages, terminating with
Loading package wxdirect-0.12.1.1 ... linking ... done.
Loading package wxcore-0.12.1.2 ... <command line>: can't load .so/.DLL for: stdc++ (libstdc++.so: cannot open shared object file: No such file or directory)
(I put type of failure as other because it's a GHC panic and a GHCi failure and probably some other sort of bug too.)