I am a Haskell enthusiast and have got stuck upon compiling my little Haskell program on Windows. My program uses the iconv package, which in turn uses the foreign library w
Installing libiconv is a little tricky on Windows.
Edit iconv.cabal file, so lines with include-dirs
and extra-lib-dirs
will looks like
include-dirs: cbits, "C:\\HaskellPlatform\\2013.2.0.0\\mingw\\include"
extra-lib-dirs: "C:\\HaskellPlatform\\2013.2.0.0\\mingw\\lib"
notice the double dashes in windows path, and edit it to your path of Haskell Platform.
if os(darwin) || os(freebsd)
, change it to if os(darwin) || os(freebsd) || os(windows)
cabal install
command from iconv pachage dir