[Haskell-cafe] setNonBlockingFD?

Magnus Therning magnus at therning.org
Wed Feb 3 14:51:34 EST 2010


On Wed, Feb 3, 2010 at 00:44, Johan Tibell <johan.tibell at gmail.com> wrote:
> On Tue, Feb 2, 2010 at 4:41 PM, Magnus Therning <magnus at therning.org> wrote:
>>
>> network-fancy fails to build because "Not in scope: 'setNonBlockingFD'".
>>  Any
>> pointers to what should be used in 6.12?
>
> I have the following in 'network':
> #if __GLASGOW_HASKELL__ < 611
>     System.Posix.Internals.setNonBlockingFD fd
> #else
>     System.Posix.Internals.setNonBlockingFD fd True
> #endif

Thanks.  That pointed me in the right direction.  I've posted the
attached patch as a suggested fix to the developer.  Hopefully
there'll be a compilable version on Hackage soon.

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setNonBlockingFD.patch
Type: text/x-patch
Size: 2189 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100203/cb3be25b/setNonBlockingFD.bin


More information about the Haskell-Cafe mailing list