Problems with Network.Socket.getAddrInfo under MacOS 10.5, GHC 6.10.2?

Hi, It does not appear that you can access the 'addrFlags' returned by getAddrInfo, you get the exception: *** Exception: unpackBits: unhandled bits set: 8 Is this just a MacOS issue? Should I raise a ticket for it? Cheers Neil GHCi, version 6.10.2: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer ... linking ... done. Loading package base ... linking ... done. Prelude> :m Network.Socket Prelude Network.Socket> getAddrInfo Nothing (Just "localhost") Nothing Loading package syb ... linking ... done. Loading package base-3.0.3.1 ... linking ... done. Loading package parsec-2.1.0.1 ... linking ... done. Loading package network-2.2.1 ... linking ... done. [AddrInfo {addrFlags = *** Exception: unpackBits: unhandled bits set: 8 Prelude Network.Socket>

On Mon, May 4, 2009 at 8:35 AM, Neil Davies < semanticphilosopher@googlemail.com> wrote:
It does not appear that you can access the 'addrFlags' returned by getAddrInfo, you get the exception: *** Exception: unpackBits: unhandled bits set: 8
Interesting.
Is this just a MacOS issue? Should I raise a ticket for it?
It's presumably Mac-specific, but yes, please file a ticket and I'll take a look. File it against the network package, not GHC itself.

On Mon, May 4, 2009 at 8:20 PM, Bryan O'Sullivan
On Mon, May 4, 2009 at 8:35 AM, Neil Davies
wrote: It does not appear that you can access the 'addrFlags' returned by getAddrInfo, you get the exception: *** Exception: unpackBits: unhandled bits set: 8
Interesting.
Is this just a MacOS issue? Should I raise a ticket for it?
It's presumably Mac-specific, but yes, please file a ticket and I'll take a look. File it against the network package, not GHC itself.
The network package now has a new maintainer (me) and a new trac and repo: http://trac.haskell.org/network/ http://code.haskell.org/network/ I've migrated the old tickets to the new trac. Cheers, Johan

Johan
Ticket (#8) raised - cheers.
Neil
2009/5/4 Johan Tibell
On Mon, May 4, 2009 at 8:20 PM, Bryan O'Sullivan
wrote: On Mon, May 4, 2009 at 8:35 AM, Neil Davies
wrote: It does not appear that you can access the 'addrFlags' returned by getAddrInfo, you get the exception: *** Exception: unpackBits: unhandled bits set: 8
Interesting.
Is this just a MacOS issue? Should I raise a ticket for it?
It's presumably Mac-specific, but yes, please file a ticket and I'll take a look. File it against the network package, not GHC itself.
The network package now has a new maintainer (me) and a new trac and repo:
http://trac.haskell.org/network/
http://code.haskell.org/network/
I've migrated the old tickets to the new trac.
Cheers,
Johan

Johan / Bryan Thanks for the prompt response.. Cheers Neil On 5 May 2009, at 19:23, Johan Tibell wrote:
On Mon, May 4, 2009 at 8:58 PM, Neil Davies
wrote: Johan Ticket (#8) raised - cheers. Neil
Fixed. Thanks to Bryan for the patch. New version (2.2.1.1) on Hackage contains the fix.
Cheers,
Johan
participants (3)
-
Bryan O'Sullivan
-
Johan Tibell
-
Neil Davies