[Haskell-cafe] text-icu on Windows
jgm at berkeley.edu
Sat Apr 27 22:56:32 CEST 2013
I'd very much like to get text-icu working on Windows, as then I could ship
pandoc binaries that do proper unicode collation in bibliographies. But I'm
having a devil of a time. This may be due to my very limited Windows
knowledge. Any help would be appreciated, especially from someone who actually
has text-icu working on Windows.
I was able to cabal install text-icu without errors. I used --extra-lib-dirs
and --extra-include-dirs to point to the lib and include directories in the
32-bit binary distribution of icu4c. I'm using the latest Haskell Platform,
2012.4.0.0 with ghc 7.4.2.
I was also able to build the following simple program that uses text-icu, by
doing ghc --make icu.hs:
main = print $ Locale "tr-TR"
No errors or warnings in either of these steps. But when I try to run the
compiled program, icu.exe, I get no output at all. I expected to get a line
with 'Locale "tr-TR"', but instead I get nothing -- not even an error or warning.
This remains the case if I try
main = do
print $ Locale "tr-TR"
'echo $?' yields False.
(I've posted a similar question to StackOverflow , but it hasn't gotten
an answer yet there, so I thought I'd try here.)
More information about the Haskell-Cafe