How to set Haskell-0.6.3 module encoding on windows?

My os is Windows 7, but with haskell 6.12

HaXml and other dependencies are already installed.

I tried this after loading:

runHaskell Setup.hs configure 

and

runHaskell Setup.hs configure 
--extra-include-dirs=F:/language/langer/haskell/encoding-0.6.3 
--extra-lib-dirs=F:/language/langer/haskell/encoding-0.6.3

and use cabal:

cabal install encoding

but all of the above is printed:

* Missing header file: system_encoding.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.

I tried them on Cygwin, MINGW and MSDOC, all failed.

After a lot of searching, I found this (haskll-cafe and google group have the same content)

they mentioned "langinfo.h", I found this file under cygwin "/ usr / include". but still not working.

Does anyone successfully install encoding-0.6.3 on Windows?

+3
source share
2 answers

To create it on Windows, just pass the -f-systemEncoding flag to install cabal

+1
source

, , , :

"langinfo.h", MinGW libgw32c. , , , ( MSYS ):

http://placella.com/software/zenity/

, , ( , GHC ):

http://dmwit.com/wyvern/encoding_ffi.dpatch

+1

Source: https://habr.com/ru/post/1785647/


All Articles