Isn't Curl a C library (with a Haskell binding)? For Haskell bindings the best environment on Windows is usually MinGW / MSys, but your error suggests you should be building from Cygwin in this case.