[Haskell-cafe] Happstack + network package issue on the Mac

Gregory Collins greg at gregorycollins.net
Thu Oct 8 10:35:59 EDT 2009

Sean Leather <leather at cs.uu.nl> writes:

> We have run into an issue that it seems other people have already
> found but has apparently not been resolved, yet. It manifests as with
> the error "HTTP request failed with: Unsupported socket". The problem
> is described in two places with different workarounds.
>   http://code.google.com/p/happstack/issues/detail?id=88
>   http://groups.google.com/group/HAppS/msg/0c9a0d0fd7c6aff0
> One workaround is to rewrite part of the network package, and the
> other is to downgrade the package. It could be the case that the
> rewrite came from the older version, though I'm not sure.
> I'm curious if it is possible to fix this, either in Happstack or the
> network package, once and for all. The workarounds are rather painful
> when so many things depend on the network package.

The following patch to happstack works for me:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: happstack-unsupported-socket-fix.diff
Type: text/x-patch
Size: 3119 bytes
Desc: Fix unsupported socket issue
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20091008/07552c9a/happstack-unsupported-socket-fix.bin
-------------- next part --------------

Gregory Collins <greg at gregorycollins.net>

More information about the Haskell-Cafe mailing list