HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleAgda-2.7.0.1Haskell2010

Agda.Syntax.Concrete.Definitions.Types

  • 15 types
  • 12 values
  • PackageAgda-2.7.0.1
  • Exports27
  • LanguageHaskell2010
  • LicenceMIT
  • SourceTypes.hs
datadata NiceDeclaration
#

The nice declarations. No fixity declarations and function definitions are contained in a single constructor instead of spread out between type signatures and clauses. The private, postulate, abstract and instance modifiers have been distributed to the individual declarations.

Observe the order of components:

Range Fixity' Access IsAbstract IsInstance TerminationCheck PositivityCheck

further attributes

(Q)Name

content (Expr, Declaration ...)

Constructors

Instances11Show, Generic, NFData, Pretty, HasRange, MakeAbstract, …
typetype Measure = Name
#

Termination measure is, for now, a variable name.

datadata Clause
#

One clause in a function definition. There is no guarantee that the LHS actually declares the Name. We will have to check that later.

Instances8Show, Generic, NFData, MakeAbstract, MakePrivate, ToAbstract, …

In an `interleaved mutual' block we collect the data signatures, function signatures, as well as their associated constructors and function clauses respectively. Each signature is given a position in the block (from 0 onwards) and each set of constructor / clauses is given a *distinct* one. This allows for interleaved forward declarations similar to what one gets in a new-style mutual block.

datadata InterleavedDecl
#

Constructors

typetype DeclNum = Int
#

Numbering declarations in an interleaved mutual block.

datadata KindOfBlock
#

Several declarations expect only type signatures as sub-declarations. These are:

Constructors

Instances3Eq, Ord, Show
  • Eq KindOfBlockDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Definitions.Types
  • Ord KindOfBlockDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Definitions.Types
  • Show KindOfBlockDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Definitions.Types
datadata InMutual
#

Constructors

Instances2Eq, Show
  • Eq InMutualDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Definitions.Types
  • Show InMutualDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Definitions.Types
datadata DataRecOrFun
#

The kind of the forward declaration.

Instances3Eq, Show, Pretty
  • Eq DataRecOrFunDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Definitions.Types
  • Show DataRecOrFunDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Definitions.Types
  • Pretty DataRecOrFunDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Definitions.Types