purescript-0.10.4: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.TypeChecker.Synonyms

Description

Functions for replacing fully applied type synonyms

Synopsis

Documentation

type SynonymMap = Map (Qualified (ProperName TypeName)) ([(Text, Maybe Kind)], Type) Source #

Type synonym information (arguments with kinds, aliased type), indexed by name

replaceAllTypeSynonyms :: (e ~ MultipleErrors, MonadState CheckState m, MonadError e m) => Type -> m Type Source #

Replace fully applied type synonyms

replaceAllTypeSynonymsM :: MonadError MultipleErrors m => SynonymMap -> Type -> m Type Source #

Replace fully applied type synonyms by explicitly providing a SynonymMap.