Safe Haskell | Safe-Inferred |
---|
- instantiateT :: Ord n => Type n -> Type n -> Maybe (Type n)
- instantiateTs :: Ord n => Type n -> [Type n] -> Maybe (Type n)
Documentation
Instantiate a type with an argument.
The type to be instantiated must have an outer forall, else Nothing
.
Instantiate a type with several arguments.
The type to be instantiated must have at least as many outer foralls
as provided type arguments, else Nothing
.