[Haskell-cafe] Re: Network.Socket Woes
Felipe Lessa
felipe.lessa at gmail.com
Fri Mar 7 15:23:28 EST 2008
On Fri, Mar 7, 2008 at 4:04 PM, 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
> 45607
Considering that PortNumber implements toEnum/fromEnum, why is PortNum
exported anyway?
--
Felipe.
More information about the Haskell-Cafe
mailing list