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.Internal.MetaVars

  • 1 class
  • 6 values
  • PackageAgda-2.7.0.1
  • Exports7
  • LanguageHaskell2010
  • LicenceMIT
  • SourceMetaVars.hs
classclass AllMetas t where
#

Returns every meta-variable occurrence in the given type, except for those in sort annotations on types.

Methods

Instances20AllMetas, …
valueallMetasList :: AllMetas a => a -> [MetaId]
#

Returns allMetas in a list. allMetasList = allMetas (:[]).

Note: this resulting list is computed via difference lists. Thus, use this function if you actually need the whole list of metas. Otherwise, use allMetas with a suitable monoid.

valuefirstMeta :: AllMetas a => a -> Maybe MetaId
#

Returns the first meta it find in the thing, if any. firstMeta == listToMaybe . allMetasList.