language-pts-0: Pure Type Systems

Safe HaskellNone
LanguageHaskell2010

Language.PTS.Check

Description

Type-checker.

Synopsis

Documentation

type_ Source #

Arguments

:: (Eq a, Show a, PrettyPrec a, Specification s, MonadErr m, PrettyPrec err, AsErr err) 
=> (a -> Maybe (ValueIntro err s a))

environment

-> TermInf s a

term to type-check

-> m (ValueIntro err s a, ValueIntro err s a)

as result we get evaluated term and its type.

We can infer the type of TermInf...

check_ Source #

Arguments

:: (Eq a, Show a, PrettyPrec a, Specification s, MonadErr m, PrettyPrec err, AsErr err) 
=> (a -> Maybe (ValueIntro err s a))

environment

-> TermChk s a

term to check

-> ValueIntro err s a

expected type

-> m (ValueIntro err s a)

as result we get evaluated term

... and check the type of TermChk.