Safe Haskell | None |
---|---|

Language | Haskell98 |

- constructorForm :: Term -> ReduceM Term
- enterClosure :: Closure a -> (a -> ReduceM b) -> ReduceM b
- underAbstraction_ :: Subst a => Abs a -> (a -> ReduceM b) -> ReduceM b
- getConstInfo :: HasConstInfo m => QName -> m Definition
- isInstantiatedMeta :: MetaId -> ReduceM Bool
- lookupMeta :: MetaId -> ReduceM MetaVariable
- reportSDoc :: VerboseKey -> Int -> TCM Doc -> ReduceM ()
- reportSLn :: VerboseKey -> Int -> String -> ReduceM ()
- traceSLn :: HasOptions m => VerboseKey -> Int -> String -> m a -> m a
- traceSDoc :: VerboseKey -> Int -> TCM Doc -> ReduceM a -> ReduceM a
- askR :: ReduceM ReduceEnv
- applyWhenVerboseS :: HasOptions m => VerboseKey -> Int -> (m a -> m a) -> m a -> m a

# Documentation

constructorForm :: Term -> ReduceM Term Source

enterClosure :: Closure a -> (a -> ReduceM b) -> ReduceM b Source

getConstInfo :: HasConstInfo m => QName -> m Definition Source

Lookup the definition of a name. The result is a closed thing, all free variables have been abstracted over.

reportSDoc :: VerboseKey -> Int -> TCM Doc -> ReduceM () Source

traceSLn :: HasOptions m => VerboseKey -> Int -> String -> m a -> m a Source

applyWhenVerboseS :: HasOptions m => VerboseKey -> Int -> (m a -> m a) -> m a -> m a Source

Apply a function if a certain verbosity level is activated.

Precondition: The level must be non-negative.