[Haskell-beginners] inserting tupels inside list as tupels in list

Chaddaï Fouché chaddai.fouche at gmail.com
Tue Dec 22 04:31:22 EST 2009


On Mon, Dec 21, 2009 at 5:10 PM,  <kane96 at gmx.de> wrote:
> issn't there a way to manage this event list easily?

Sure there is, on the other hand you already had a lot of help on this
mainling list, maybe you could try to finish this by yourself ?
Some pointers though :
- first I would like to point that while Day/Month/Year is the
convention in some countries, (Year,Month,Day) makes a lot more sense
from an informatic point of view given that the lexicographic order on
that corresponds to the date order (add Ord to the derivation for your
Month type)

- second, a list may not be the most appropriate  for associating date
and event, a Map (from Data.Map) may be better.

-- 
Jedaï


More information about the Beginners mailing list