
10 Mar
2013
10 Mar
'13
5:06 p.m.
Peter Caspers
data Month = January | ...
ok, I will try to change my code in that direction. The idea is clear.
To whatever extent these "algebraic" data types do map to integer values for your purposes, you can implement that by making Month an instance of Enum. Donn