Is it possible to determine the arity of a value's constructor?<br>Suppose I have a value x of type<br><br> data A = B Int | C<br><br>They typeOf function returns its TypeRep, which contains its type<br>constructor, but I don't see how to decide whether that<br>
constructor's arity is 0 or 1. If the type has field names<br>I can look at those using Data.Data.conFields and count them,<br>but if it doesn't I don't see how to do it.<br><br>-david<br><br>