th-typegraph-0.32: Graph of the subtype relation

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.TypeGraph.Arity

Description

Function to compute the arity or kind of a Type, the number of type parameters that need to be applied to get a concrete type.

Synopsis

Documentation

typeArity :: Quasi m => Type -> m Int Source

Compute the arity of a type - the number of type parameters that must be applied to it in order to obtain a concrete type. I'm not quite sure I understand the relationship between this and freeTypeVars.