License | MIT |
---|---|
Maintainer | Joe Leslie-Hurd <joe@gilith.com> |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
- data TypeSubst = TypeSubst (Map TypeVar Type) (Map Type (Maybe Type))
- mk :: Map TypeVar Type -> TypeSubst
- dest :: TypeSubst -> Map TypeVar Type
- fromList :: [(TypeVar, Type)] -> TypeSubst
- empty :: TypeSubst
- singleton :: TypeVar -> Type -> TypeSubst
- null :: TypeSubst -> Bool
- varSubst :: TypeVar -> TypeSubst -> Maybe Type
- dataSubst :: TypeData -> TypeSubst -> (Maybe Type, TypeSubst)
- class CanSubst a where
- compose :: TypeSubst -> TypeSubst -> TypeSubst