HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

ModuleAgda-2.8.0.2Haskell2010

Agda.TypeChecking.DropArgs

Contents
  1. Dropping initial arguments to create a projection-like function
Synopsis
  • PackageAgda-2.8.0.2
  • Exports1
  • LanguageHaskell2010
  • LicenceMIT
  • SourceDropArgs.hs

Dropping initial arguments to create a projection-like function

classclass DropArgs a where

When making a function projection-like, we drop the first n arguments.

Methods

Instances8DropArgs, …
  • DropArgs ClauseDefined in Agda-2.8.0.2 · Agda.TypeChecking.DropArgs

    NOTE: does not work for recursive functions.

  • DropArgs TelescopeDefined in Agda-2.8.0.2 · Agda.TypeChecking.DropArgs

    NOTE: This creates telescopes with unbound de Bruijn indices.

  • DropArgs TermDefined in Agda-2.8.0.2 · Agda.TypeChecking.DropArgs

    Use for dropping initial lambdas in clause bodies. NOTE: does not reduce term, need lambdas to be present.

  • DropArgs CompiledClausesDefined in Agda-2.8.0.2 · Agda.TypeChecking.DropArgs

    To drop the first n arguments in a compiled clause, we reduce the split argument indices by n and drop n arguments from the bodies. NOTE: this only works for non-recursive functions, we are not dropping arguments to recursive calls in bodies.

  • DropArgs SplitTreeDefined in Agda-2.8.0.2 · Agda.TypeChecking.DropArgs
  • DropArgs FunctionInverseDefined in Agda-2.8.0.2 · Agda.TypeChecking.DropArgs
  • DropArgs PermutationDefined in Agda-2.8.0.2 · Agda.TypeChecking.DropArgs
  • DropArgs a => DropArgs (Maybe a)Defined in Agda-2.8.0.2 · Agda.TypeChecking.DropArgs