Time library design proposal

Ketil Malde ketil+haskell at ii.uib.no
Wed Feb 2 03:10:57 EST 2005

Ketil Malde <ketil+haskell at ii.uib.no> writes:

>   easter :: Year -> Day
>   easter yr = first (filter isSunday (daysFrom (springEquinox yr)))

Thanks to everybody who pointed out that we also need to incorporate
isFullMoon or similar in the equation.  

This omission was, as many of you guessed, of course intentional, and
shows in a nice way how one in such a scheme can fix all Easter date
mistakes in one's programs in one fell swoop.  Try *that* with


If I haven't seen further, it is by standing in the footprints of giants

More information about the Libraries mailing list