Peter Caspers <pcaspers1...@gmail.com>, >> 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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe