Calendar Types
Ketil Malde
ketil+haskell at ii.uib.no
Tue Feb 15 03:01:31 EST 2005
Seth Kurtzberg <seth at cql.com> writes:
> The fallacy here is that month is a unit. Your example proves that
> it is not.
Okay - but this is going to be a weird calendar, if it doesn't handle
months. (Or minutes, which have a similar -- although less frequent
-- problem with seconds)
(Which is one reason I argue that calendar units should be an algebraic
data type, and not a record.)
-kzm
--
If I haven't seen further, it is by standing in the footprints of giants
More information about the Libraries
mailing list