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

Safe HaskellNone
LanguageHaskell98

Agda.Syntax.Translation.ReflectedToAbstract

Synopsis

Documentation

type Names = [Name] Source

withName :: String -> (Name -> WithNames a) -> WithNames a Source

Adds a new unique name to the current context.

askName :: Int -> WithNames (Maybe Name) Source

Returns the name of the variable with the given de Bruijn index.

toAbstract_ :: ToAbstract r a => r -> TCM a Source

Translate reflected syntax to abstract, using the names from the current typechecking context.

toAbstractWithoutImplicit :: ToAbstract r a => r -> TCM a Source

Drop implicit arguments unless --show-implicit is on.