HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Syntax.Translation.ReflectedToAbstract

  • 2 types
  • 1 class
  • 15 values
  • PackageAgda-2.7.0.1
  • Exports18
  • LanguageHaskell2010
  • LicenceMIT
  • SourceReflectedToAbstract.hs
valuewithName :: MonadReflectedToAbstract m => String -> (Name -> m a) -> m a
#

Adds a new unique name to the current context. NOTE: See chooseName in Agda.Syntax.Translation.AbstractToConcrete for similar logic. NOTE: See freshConcreteName in Agda.Syntax.Scope.Monad also for similar logic.

classclass ToAbstract r where
#

Associated types

Methods

Instances14ToAbstract, …

Check that all variables in the telescope are bound in the left-hand side. Since we check the telescope by attaching type annotations to the pattern variables there needs to be somewhere to put the annotation. Also, since the lhs is where the variables are actually bound, missing a binding for a variable that's used later in the telescope causes unbound variable panic (see #5044).