Getting started and set up with the curl package on Windows platforms takes a few extra steps. To hopefully help you to get going with the wonderous curl library and all its goodness, here's what you need to do to:
foo$ CPPFLAGS=-Ic:/packages/curl-7.19.4/include cabal install curl --ld-options=-Lc:/packages/curl-7.19.4/pre/lib
(I'm assuming you are using a UNIX-like shell to invoke the above, but it should be 'obvious' how to translate it to your command shell of choice..I hope.)
foo$ ghci -package curl ..... Network.Curl.curlGetString "http://www.haskell.org/" >>= putStrLn.fst
Building curl from source with mingwTo build the contents of the attached .zip file yourself, here are the suggested steps I followed after having downloaded the latest version (7.19.4 - March 2009):
foo$ cd <top of distribution tree>
foo$ PKG_CONFIG_PATH=/c/src/openssl_mingw32-0.9.8e/:/c/src/openldap/ ./configure --with-ssl=c:/src/openssl_mingw32-0.9.8e/
....
foo$ make
foo$ mkdir curl-7.19.4
foo$ make install prefix=`pwd`/curl-7.19.4
....
foo$ cp curl-7.19.4/bin/libcurl-4.dll curl-7.19.4/bin/libcurl.dll
foo$ cp README CHANGES COPYING curl-7.19.4/
foo$ zip -r curl-7.19.4-mingw32.zip curl-7.19.4
(This assumes of course that you've got a cygwin + mingw compilation environment set up, with the mingw versions of gcc and binutils being used
over the cygwin versions. Versionwise for gcc, I'm assuming that you aren't using gcc4, but gcc-3.4.* (i.e., same as current versions of GHC.))
|
Haskell packages >