[Haskell-cafe] Re: Basic question....

Chaddaï Fouché chaddai.fouche at gmail.com
Fri Aug 17 09:51:02 EDT 2007


17 Aug 2007 14:44:28 +0100, Jon Fairbairn <jon.fairbairn at cl.cam.ac.uk>:
> Why not
>
> > data EnvItem a = EnvItem {key:: Key, value:: a}

It's the real solution, but I feel it was worthwhile to underscore the
other mistakes (often encountered by the newbies) in types and
parameters.

-- 
Jedaï


More information about the Haskell-Cafe mailing list