Safe Haskell | None |
---|---|
Language | Haskell2010 |
- initInference :: UnitSolver ()
- runCriticalVariables :: UnitSolver [UnitInfo]
- runInferVariables :: UnitSolver [(VV, UnitInfo)]
- runCompileUnits :: UnitSolver CompiledUnits
- runInconsistentConstraints :: UnitSolver (Maybe Constraints)
- getConstraint :: Annotated f => f UA -> Maybe Constraint
- puName :: ProgramUnit UA -> Name
- puSrcName :: ProgramUnit UA -> Name
Documentation
initInference :: UnitSolver () Source #
Prepare to run an inference function.
runCriticalVariables :: UnitSolver [UnitInfo] Source #
Return a list of critical variables as UnitInfo list (most likely to be of the UnitVar constructor).
runInferVariables :: UnitSolver [(VV, UnitInfo)] Source #
Return a list of variable names mapped to their corresponding unit that was inferred.
runCompileUnits :: UnitSolver CompiledUnits Source #
Produce information for a "units-mod" file.
runInconsistentConstraints :: UnitSolver (Maybe Constraints) Source #
Return a possible list of unsolvable constraints.
getConstraint :: Annotated f => f UA -> Maybe Constraint Source #
Extract the constraint from a given annotated piece of AST.