libcspm-0.2.0: A library providing a parser, type checker and evaluator for CSPM.

CSPM.TypeChecker

Synopsis

Documentation

dependenciesOfExp :: TCExp -> TypeCheckMonad [Name]Source

Returns the list of names that this expression depends on

runTypeChecker :: TypeInferenceState -> TypeCheckMonad a -> IO aSource

Runs the typechecker, starting from state st. If any errors are encountered then a SourceError will be thrown with the relevent error messages.