I was trying to build the curl hackage package on Debian unstable with ghc 7.0.3, and one of its modules were failing to build. I searched for the error message and found this GHC ticket. As mentioned in the ticket, I had to downgrade binutils to 2.20. The version of binutils in sid is 2.21.

Another possibility would be to change curl to avoid using -fvia-C, but I didn't want to modify the package.

Hi Marco,

With the recent arrival of http-enumerator package I think the need for the haskell-curl bindings will actually disappear. In real world use, I found the curl bindings rather poor designed (sticking too close to the underlying C API) and rather tricky to use.

http-enumerator is pretty much pure Haskell code. The only C libraries it depends on are libc6, libffi5, libgmp10 and zlib1g.

Erik (DHG team member).

Comment by Anonymous Sex 29 Abr 2011 04:49:40 UTC
that haskell-curl in Debian does patch out -fvia-C, so this is safe (or nobody uses the package ;-))
Comment by nomeata Qui 02 Fev 2012 21:10:40 UTC