Agda-2.6.0.1: A dependently typed functional programming language and proof assistant

Safe Haskell | None
Language | Haskell2010

Agda.TypeChecking.Constraints

Synopsis

- catchConstraint :: Constraint -> TCM () -> TCM ()
- addConstraint :: Constraint -> TCM ()
- noConstraints :: TCM a -> TCM a
- newProblem :: TCM a -> TCM (ProblemId, a)
- newProblem_ :: TCM () -> TCM ProblemId
- ifNoConstraints :: TCM a -> (a -> TCM b) -> (ProblemId -> a -> TCM b) -> TCM b
- ifNoConstraints_ :: TCM () -> TCM a -> (ProblemId -> TCM a) -> TCM a
- guardConstraint :: Constraint -> TCM () -> TCM ()
- whenConstraints :: TCM () -> TCM () -> TCM ()
- wakeConstraints' :: (ProblemConstraint -> TCM Bool) -> TCM ()
- wakeupConstraints :: MetaId -> TCM ()
- wakeupConstraints_ :: TCM ()
- solveAwakeConstraints :: TCM ()
- solveAwakeConstraints' :: Bool -> TCM ()
- solveSomeAwakeConstraints :: (ProblemConstraint -> Bool) -> Bool -> TCM ()
- solveConstraint :: Constraint -> TCM ()
- solveConstraint_ :: Constraint -> TCM ()
- checkTypeCheckingProblem :: TypeCheckingProblem -> TCM Term
- debugConstraints :: TCM ()

# Documentation

catchConstraint :: Constraint -> TCM () -> TCM () Source #

Catches pattern violation errors and adds a constraint.

addConstraint :: Constraint -> TCM () Source #

noConstraints :: TCM a -> TCM a Source #

Don't allow the argument to produce any blocking constraints.

newProblem :: TCM a -> TCM (ProblemId, a) Source #

Create a fresh problem for the given action.

newProblem_ :: TCM () -> TCM ProblemId Source #

ifNoConstraints :: TCM a -> (a -> TCM b) -> (ProblemId -> a -> TCM b) -> TCM b Source #

ifNoConstraints_ :: TCM () -> TCM a -> (ProblemId -> TCM a) -> TCM a Source #

guardConstraint :: Constraint -> TCM () -> TCM () Source #

`guardConstraint c blocker` tries to solve `blocker` first. If successful without constraints, it moves on to solve `c`, otherwise it adds a `Guarded c cs` constraint to the `blocker`-generated constraints `cs`.

whenConstraints :: TCM () -> TCM () -> TCM () Source #

wakeConstraints' :: (ProblemConstraint -> TCM Bool) -> TCM () Source #

Wake constraints matching the given predicate (and aren't instance constraints if `isConsideringInstance`).

wakeupConstraints :: MetaId -> TCM () Source #

Wake up the constraints depending on the given meta.

wakeupConstraints_ :: TCM () Source #

Wake up all constraints.

solveAwakeConstraints :: TCM () Source #

solveAwakeConstraints' :: Bool -> TCM () Source #

solveSomeAwakeConstraints :: (ProblemConstraint -> Bool) -> Bool -> TCM () Source #

Solve awake constraints matching the predicate. If the second argument is True solve constraints even if already `isSolvingConstraints`.

solveConstraint :: Constraint -> TCM () Source #

solveConstraint_ :: Constraint -> TCM () Source #

checkTypeCheckingProblem :: TypeCheckingProblem -> TCM Term Source #

debugConstraints :: TCM () Source #