Language.PureScript.TypeChecker.Subsumption

purescript-0.15.15: PureScript Programming Language Compiler

Safe Haskell | None
Language | Haskell2010

Language.PureScript.TypeChecker.Subsumption

Description

Subsumption checking

Synopsis

- subsumes :: (MonadError MultipleErrors m, MonadState CheckState m) => SourceType -> SourceType -> m (Expr -> Expr)

# Documentation

subsumes :: (MonadError MultipleErrors m, MonadState CheckState m) => SourceType -> SourceType -> m (Expr -> Expr) #

Check that one type subsumes another, rethrowing errors to provide a better error message