narc-0.1: Query SQL databases using Nested Relational Calculus embedded in Haskell.

Narc.TypeInfer

Synopsis

Documentation

tyCheck :: TyEnv -> Term a -> ErrorGensym (TySubst, Term Type)Source

tyCheck env term infers a type for term in environment env. The environment has type [(Var, QType)]; an entry (x, qty) indicates that variable x has the quantified type qty; a QType (ys, ty) indicates the type forall ys, ty.