Documentation
indexConstructorTypes :: [Type] -> [Type] -> Q [(Type, Int, Int)] Source #
From:
- the list of all the types of a data type
- the list of the parameters types for one of the constructors
Return:
- the type
- its index in the list of parameter types
- its index in the list of all the types