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

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.TypeChecking.Monad.Builtin

  • 3 types
  • 2 classes
  • 256 values
  • PackageAgda-2.8.0.2
  • Exports261
  • LanguageHaskell2010
  • LicenceMIT
  • SourceBuiltin.hs
valueequalityView
  1. :: Range

    Range of the rewrite expression, if any.

  2. -> Type

    Identity type?

  3. -> TCM EqualityView
#

Check whether the type is actually an equality (lhs ≡ rhs) and extract lhs, rhs, and their type.

Precondition: type is reduced.

valuegetTerm :: (HasBuiltins m, IsBuiltin a) => String -> a -> m Term
#

getTerm use name looks up name as a primitive or builtin, and throws an error otherwise. The use argument describes how the name is used for the sake of the error message.

Compute a SortKit in contexts that do not support failure (e.g. Reify). This should only be used when we are sure that the primitive sorts have been bound, i.e. because it is "after" type checking.

valuepathView :: HasBuiltins m => Type -> m PathView
#

Check whether the type is actually an path (lhs ≡ rhs) and extract lhs, rhs, and their type.

Precondition: type is reduced.

newtypenewtype BuiltinAccess a
#

The trivial implementation of HasBuiltins, using a constant TCState.

This may be used instead of TCMT/ReduceM where builtins must be accessed in a pure context.

Instances5Monad, Functor, MonadFail, Applicative, HasBuiltins
classclass (Functor m, Applicative m, Monad m) => HasBuiltins (m :: Type -> Type) where
#
Instances17HasBuiltins, …