On Thu, Oct 1, 2009 at 6:22 PM, Gregory Propf <gregorypr...@yahoo.com> wrote:
>
> 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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to