Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Language.HM.Type
Description
This module contains the abstract syntax of Hindley-Milner types.
Documentation
module Language.HM.Alpha
Monomorphic types.
Polymorphic types.
class HasTypeVars a where Source
The class of types which have free type variables.
Methods
tyVars :: a -> Set String Source
tyVars
t
calculates the set of free type variables in t
.
tyVarsInOrder :: a -> [String] Source
tyVarsInOrder
t
is like tyVars
t
, except that the type
variables are returned in the order in which they are encountered.
Instances