
ok, looks much easier and works :) But what are now the correct signatures for the function? Normally the "one and only" function should be: readCal :: IO Calendar My function are: readCal = readCal2 datelist and: readCal2 datelist = do... which returns the Calendar (the list of dates) -------- Original-Nachricht --------
Datum: Fri, 19 Feb 2010 00:41:56 +0100 Von: Daniel Fischer
An: kane96@gmx.de CC: beginners@haskell.org Betreff: Re: [Haskell-beginners] consing an element to a list inside a file
Am Freitag 19 Februar 2010 00:25:18 schrieb kane96@gmx.de:
ok, now I did it by just calling from the original function by to a new one with an empty list at the beginning.
How can I add the date at the end of the list? By creating a new list from the new date and using concat or is there a simpler way?
Better stick it to the front by (:) and reverse the list just before printing.
-- NEU: Mit GMX DSL über 1000,- ¿ sparen! http://portal.gmx.net/de/go/dsl02