[Haskell-cafe] Project postmortem II /Haskell vs. Erlang/
Joel Reymont
joelr1 at gmail.com
Wed Jan 4 05:42:46 EST 2006
Sure. Type classes, as Ketil Malde has suggested.
On Jan 4, 2006, at 2:09 AM, Dylan Thurston wrote:
> Looking at this code, I wonder if there are better ways to express
> what you really want using static typing. To wit, with records, you
> give an example
>
>
> data Pot = Pot
> {
> pProfit :: !Word64,
> pAmounts :: ![Word64] -- Word16/
> } deriving (Show, Typeable)
--
http://wagerlabs.com/
More information about the Haskell-Cafe
mailing list