purescript-0.7.0.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.TypeChecker.Entailment

Description

Type class entailment

Synopsis

Documentation

entails :: Environment -> ModuleName -> Map (Maybe ModuleName) (Map (Qualified ProperName) (Map (Qualified Ident) TypeClassDictionaryInScope)) -> Constraint -> Bool -> Check Expr Source

Check that the current set of type class dictionaries entail the specified type class goal, and, if so, return a type class dictionary reference.