Agda- A dependently typed functional programming language and proof assistant

Safe HaskellSafe-Infered




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

Catches pattern violation errors and adds a constraint.

noConstraints :: TCM a -> TCM aSource

Don't allow the argument to produce any constraints.

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

Create a fresh problem for the given action.

ifNoConstraints :: TCM a -> (a -> TCM b) -> (ProblemId -> a -> TCM b) -> TCM bSource

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

guardConstraint cs c tries to solve constraints cs first. If successful, it moves on to solve c, otherwise it returns a Guarded c cs.

wakeupConstraints :: MetaId -> TCM ()Source

Wake up the constraints depending on the given meta.

wakeupConstraints_ :: TCM ()Source

Wake up all constraints.

localState :: MonadState s m => m a -> m aSource