I'm using Haskell Platform 2011.2.0.1 installed via Homebrew. I have set up a cabalised project with relevant dependencies all defined. The executable does nothing more than to print out the arguments passed in to it. The program compiles and links correctly, but when the program ...
Main.hs:
main = do
args <- getArgs
putStrLn "Here are your arguments!:"
forM_ args putStrLn
... is run, I get ...
Trace:
$ cabal configure
Resolving dependencies...
Configuring foo-0.1...
$ cabal build
Preprocessing executables for foo-0.1...
Preprocessing test suites for foo-0.1...
Building foo-0.1...
$ dist/build/foobar/foobar some arguments
foobar: mkTextEncoding: failed (Unknown error: 0)
FAIL: 1
The relevant part of my PATH variable reads: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/usr/X11/bin
I'm thinking that this is a problem related to libiconv
. Any ideas? Thanks!