
1 Oct
2009
1 Oct
'09
7:43 p.m.
On Thu, Oct 1, 2009 at 6:22 PM, Gregory Propf
Is there a way to tell, let's say, how many constructors there are for a type? Or do I need one of the haskell extensions I've read about?
Use Data.Data and derive Data for the types you are interested in or instance it for pre-existing types that aren't already instances. Introspection is tedious but trivial. http://www.haskell.org/ghc/docs/latest/html/libraries/base/Data-Data.html