[Haskell-cafe] Re: Haskell not ready for Foo [was: Re: Hypothetical Haskell job in New York]

Henning Thielemann lemming at henning-thielemann.de
Thu Jan 8 17:26:35 EST 2009

On Thu, 8 Jan 2009, Bardur Arantsson wrote:

> Thanks. For some reason I hadn't thought to use
>   (fromIntegral x)::PortNumber
> I guess I got stuck on the idea of constructing a PortNum directly and didn't 
> think beyond that. (Maybe PortNum should really be an abstract type to force 
> indirect construction...?)

I also think that a Num instance for PortNumber is not a good idea. How 
shall (+) and (*) be defined?

More information about the Haskell-Cafe mailing list