On Thu, Sep 17, 2015 at 8:46 AM, Alberto G. Corona <agocorona@gmail.com> wrote:
It apparently works under ghc 7.8.3 and windows 10. anyway I did not noticed it. 
I  usually  insert withSocketsDo too.

It is possible that recent network package changed this, but in the past *all* socket operations had to be under the aegis of *one* withSocketsDo, otherwise any handles, buffers, etc. would become invalid when Winsock was deinitialized.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net