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.TypeChecking.Monad.Open

  • 4 values
  • PackageAgda-2.7.0.1
  • Exports4
  • LanguageHaskell2010
  • LicenceMIT
  • SourceOpen.hs
valuegetOpen :: (TermSubst a, MonadTCEnv m) => Open a -> m a
#

Extract the value from an open term. The checkpoint at which it was created must be in scope.

valuetryGetOpen
  1. :: (TermSubst a, ReadTCState m, MonadTCEnv m)
  2. => Substitution -> a -> Maybe a
  3. -> Open a
  4. -> m (Maybe a)
#

Extract the value from an open term. If the checkpoint is no longer in scope use the provided function to pull the object to the most recent common checkpoint. The function is given the substitution from the common ancestor to the checkpoint of the thing.