
10 Mar
2012
10 Mar
'12
12:24 a.m.
If I want to define a constant set in Python I would do this: class Colors: red = 1 blue=2 ... and then I use them like this: Colors.red, Colors.blue... Can I do something similar in Haskell? thanks