> John Lato <jwlato <at> gmail.com> writes:Thanks John, I did look at that,
>
> What about Data.Typeable.typeRepArgs ?
> typeRepArgs :: TypeRep -> [TypeRep]
> Prelude Data.Data> typeRepArgs (typeOf Foo)[Int,Foo]
and thought it returned only type args,
not the 'baked in' type.
Your example applies to `(typeOf Foo)` -- that is, the data constr,
which is indeed a function.
And `typeOf Foo` is `Int -> Foo`, as I noted in the OP.
I want something that can apply to a value of type Foo.
(`someFoo`, in my example.)