HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.Syntax.Internal.MetaVars

  • 1 class
  • 6 values
  • PackageAgda-2.8.0.2
  • 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.