Re: [Haskell-cafe] curl package broken in Windows

2012-11-13 Thread Iustin Pop
On Mon, Nov 12, 2012 at 08:23:21PM -0500, Michael Orlitzky wrote:
 On 11/12/12 17:43, Iavor Diatchki wrote:
  Hi,
  
  Ok, there were only minor differences between the repo and the version
  on hackage so I imported the changes into the repo, which should now be
  the same as version 1.3.7 on hackage.
  Please feel free to submit merge requestsall the folks I know who
  worked on this originally are busy with other stuff, so we really need
  someone who's using the library to help.
  
 
 I reported this a while ago, and Iustin gave an awesome explanation of
 the problem:
 
 http://haskell.1045720.n5.nabble.com/Network-Curl-cookie-jar-madness-td5716344.html
 
 I've since switched to http-conduit for that project but it would be
 nice to have curl working anyway because it requires less thinking. If
 someone's going to maintain it, then consider this a bug report!

I will file that as a bug report, thanks for the reminder!

iustin

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-13 Thread Iustin Pop
On Mon, Nov 12, 2012 at 02:43:32PM -0800, Iavor Diatchki wrote:
 Hi,
 
 Ok, there were only minor differences between the repo and the version on
 hackage so I imported the changes into the repo, which should now be the
 same as version 1.3.7 on hackage.
 Please feel free to submit merge requestsall the folks I know who
 worked on this originally are busy with other stuff, so we really need
 someone who's using the library to help.

Hi,

So I started by filling a couple of bug reports (yay for a bugtracker,
finally). However, it seems that I can't set labels on the issues (bugs
vs. enhancements), probably github rights.

Will try to send merge requests as well, time/skills permitting.

thanks,
iustin

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-12 Thread Iavor Diatchki
Hi,

the curl binding certainly needs some love---if anyone has the time to fix
it up and maintain it, help would be most appreciated.  There is a repo for
it over here: https://github.com/GaloisInc/curl which is the most up-to
date version I know of, but since the last commit there seems to be from 4
years ago, I'm not going to bet that there aren't any additional fixes
floating around.  (cc-ing Don, who is listed as the maintainer, but I'm not
sure if he has time to deal with curl right now)

-Iavor



On Sun, Nov 11, 2012 at 3:34 PM, Erik de Castro Lopo
mle...@mega-nerd.comwrote:

 Kevin Cantu wrote:

  With the curl package on Hackage, I merely need an SSL enabled version
  of libcurl, and every Linux distro I've tried this on has several
  variations of such a package.  (You have a choice of OpenSSL or
  GNUTLS, for example.)

 I tried the CURL bindings on Linux some time ago and I personally
 found the thing pretty much un-usable. The API was incomplete,
 inconsistent and way too close to the C API.

 However, I have had much better luck with Michael Snoyman's http-conduit
 package, which being pure Haskell (ie no C) should be much easier to
 install on windows.

 Erik
 --
 --
 Erik de Castro Lopo
 http://www.mega-nerd.com/

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-12 Thread Iustin Pop
On Mon, Nov 12, 2012 at 01:48:23PM -0800, Iavor Diatchki wrote:
 Hi,
 
 the curl binding certainly needs some love---if anyone has the time to fix
 it up and maintain it, help would be most appreciated.  There is a repo for
 it over here: https://github.com/GaloisInc/curl which is the most up-to
 date version I know of, but since the last commit there seems to be from 4
 years ago, I'm not going to bet that there aren't any additional fixes
 floating around.  (cc-ing Don, who is listed as the maintainer, but I'm not
 sure if he has time to deal with curl right now)

I've tried to contact Don multiple times over the past month with offers
of whatever help I can give, but I heard nothing back.

I didn't know about the github repo (it's not listed on the hackage
page), so thanks a lot for that info, I'll try to send some merge
requests and file bugs (there is a least one critical bug w.r.t. SSL
usage on Linux and another small-impact bug with cookie jars usage).

iustin, who uses curl and _really_ wants to see it improved

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-12 Thread Iustin Pop
On Mon, Nov 12, 2012 at 10:57:25PM +0100, Iustin Pop wrote:
 On Mon, Nov 12, 2012 at 01:48:23PM -0800, Iavor Diatchki wrote:
  Hi,
  
  the curl binding certainly needs some love---if anyone has the time to fix
  it up and maintain it, help would be most appreciated.  There is a repo for
  it over here: https://github.com/GaloisInc/curl which is the most up-to
  date version I know of, but since the last commit there seems to be from 4
  years ago, I'm not going to bet that there aren't any additional fixes
  floating around.  (cc-ing Don, who is listed as the maintainer, but I'm not
  sure if he has time to deal with curl right now)
 
 I've tried to contact Don multiple times over the past month with offers
 of whatever help I can give, but I heard nothing back.
 
 I didn't know about the github repo (it's not listed on the hackage
 page), so thanks a lot for that info, I'll try to send some merge
 requests and file bugs (there is a least one critical bug w.r.t. SSL
 usage on Linux and another small-impact bug with cookie jars usage).

Hmm, checking again, the github repo is at version 1.3.5 (April 2009),
whereas hackage is at version 1.3.7 (uploaded in May 2011).

Still hunting for a correct upstream project page or tracker…

regards,
iustin

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-12 Thread Iavor Diatchki
Hi,

Ok, there were only minor differences between the repo and the version on
hackage so I imported the changes into the repo, which should now be the
same as version 1.3.7 on hackage.
Please feel free to submit merge requestsall the folks I know who
worked on this originally are busy with other stuff, so we really need
someone who's using the library to help.

Thanks!
-Iavor



On Mon, Nov 12, 2012 at 2:06 PM, Iustin Pop iu...@k1024.org wrote:

 On Mon, Nov 12, 2012 at 10:57:25PM +0100, Iustin Pop wrote:
  On Mon, Nov 12, 2012 at 01:48:23PM -0800, Iavor Diatchki wrote:
   Hi,
  
   the curl binding certainly needs some love---if anyone has the time to
 fix
   it up and maintain it, help would be most appreciated.  There is a
 repo for
   it over here: https://github.com/GaloisInc/curl which is the most
 up-to
   date version I know of, but since the last commit there seems to be
 from 4
   years ago, I'm not going to bet that there aren't any additional fixes
   floating around.  (cc-ing Don, who is listed as the maintainer, but
 I'm not
   sure if he has time to deal with curl right now)
 
  I've tried to contact Don multiple times over the past month with offers
  of whatever help I can give, but I heard nothing back.
 
  I didn't know about the github repo (it's not listed on the hackage
  page), so thanks a lot for that info, I'll try to send some merge
  requests and file bugs (there is a least one critical bug w.r.t. SSL
  usage on Linux and another small-impact bug with cookie jars usage).

 Hmm, checking again, the github repo is at version 1.3.5 (April 2009),
 whereas hackage is at version 1.3.7 (uploaded in May 2011).

 Still hunting for a correct upstream project page or tracker…

 regards,
 iustin

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-12 Thread Michael Orlitzky
On 11/12/12 17:43, Iavor Diatchki wrote:
 Hi,
 
 Ok, there were only minor differences between the repo and the version
 on hackage so I imported the changes into the repo, which should now be
 the same as version 1.3.7 on hackage.
 Please feel free to submit merge requestsall the folks I know who
 worked on this originally are busy with other stuff, so we really need
 someone who's using the library to help.
 

I reported this a while ago, and Iustin gave an awesome explanation of
the problem:

http://haskell.1045720.n5.nabble.com/Network-Curl-cookie-jar-madness-td5716344.html

I've since switched to http-conduit for that project but it would be
nice to have curl working anyway because it requires less thinking. If
someone's going to maintain it, then consider this a bug report!

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-11 Thread Kevin Cantu
Heh, I was trying to build this yesterday and it was making by eyes bleed.

With the curl package on Hackage, I merely need an SSL enabled version
of libcurl, and every Linux distro I've tried this on has several
variations of such a package.  (You have a choice of OpenSSL or
GNUTLS, for example.)

Apparently neither OpenSSL nor cURL wants to provide such a Windows
binary package, though, so I attempted to build a version of libcurl
with SSL support...

Sigbjorn's instructions are definitely out of date.  (I couldn't use
his ZIP package, either.)  Using MSYS, though, I was able to compile a
version of libcurl with winssl, but then every variation of cabal
install command wasn't cooperating.  What should I be using instead of
the following, neither of which seems to tell cabal where to find
libcurl?

```
$ CPPFLAGS=-Ic:/code/curl_install/include cabal install curl
--ld-options=-Lc:/code/curl_install/lib
$ cabal install curl --extra-lib-dirs=c:/code/curl_install/lib
--extra-include-dirs=c:/code/curl_install/include
```

Detail, showing some verbose error messages:
https://gist.github.com/4056331


Kevin

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-11 Thread Erik de Castro Lopo
Kevin Cantu wrote:

 With the curl package on Hackage, I merely need an SSL enabled version
 of libcurl, and every Linux distro I've tried this on has several
 variations of such a package.  (You have a choice of OpenSSL or
 GNUTLS, for example.)

I tried the CURL bindings on Linux some time ago and I personally
found the thing pretty much un-usable. The API was incomplete, 
inconsistent and way too close to the C API.

However, I have had much better luck with Michael Snoyman's http-conduit
package, which being pure Haskell (ie no C) should be much easier to 
install on windows.

Erik
-- 
--
Erik de Castro Lopo
http://www.mega-nerd.com/

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-10 Thread Andrew Pennebaker
Yes, that's a very good point. Did you know that Strawberry Perl includes a
cygwin gcc?

http://strawberryperl.com

Maybe Haskell Platform could do the same.
On Nov 10, 2012 5:28 PM, Stephen Tetley stephen.tet...@gmail.com wrote:

 The only short cut would be to have it in the Platform - otherwise it
 is DIY I'm afraid.

 This is as much Microsoft's fault as Haskell's for not providing a C
 compiler, build tools etc. in the baseline environment.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] curl package broken in Windows

2012-11-09 Thread Andrew Pennebaker
When I do cabal install curl in Windows, a missing cygwin dll message
pops up, and packages that depend on curl, like shpider, fail to install.

Specs:

* cabal-install 0.14.0
* Cabal 1.14.0
* GHC 7.4.2
* Haskell Platform 2012
* Windows 7 Proffesional x64

-- 
Cheers,

Andrew Pennebaker
www.yellosoft.us
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-09 Thread Stephen Tetley
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.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] curl package broken in Windows

2012-11-09 Thread Stephen Tetley
I've just checked Hackage - the Curl package (haskell) is a binding
to libcurl (c library).

It looks like MinGW / MSys is the best option - there are some notes
are written by Sigbjorn Finne (who wrote the Haskell binding) although
they are now quite old:

http://haskell.forkio.com/Home/curl-win32

It looks like Sigbjorn, was cross compiling a MinGW build for libcurl
from Cygwin, instead I'd build under a proper installation of MinGW /
MSys. The bits of MinGW that are distributed with GHC aren't
sufficient for this - you will need a proper installing of MinGW /
MSys.

On 9 November 2012 20:13, Stephen Tetley stephen.tet...@gmail.com wrote:
 Isn't Curl a C library (with a Haskell binding)?


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe