[Haskell-cafe] Re: Network.Socket Woes
agl at imperialviolet.org
Fri Mar 7 14:46:32 EST 2008
On Fri, Mar 7, 2008 at 11:04 AM, Benedikt Schmidt <beschmi at gmail.com> wrote:
> The PortNumber type is an instance of Num, so it works if you do not
> use the PortNum constructor.
> Prelude Network.Socket> case 10162 :: PortNumber of PortNum p -> p
And there was the trick that I've been missing all this time ;) I'll
probably submit a documentation patch for this since I'm a Bear of
Little Brain and this wasn't obvious to me.
Adam Langley agl at imperialviolet.org http://www.imperialviolet.org
More information about the Haskell-Cafe