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.Syntax.Concrete.Definitions.Types

  • 14 types
  • 12 values
  • PackageAgda-2.8.0.2
  • Exports26
  • 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, ToAbstract, …
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, ToAbstract, MakeAbstract, MakePrivate, …

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

Instances6Eq, Ord, Show, Generic, NFData, Rep
datadata InMutual
#

Constructors

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

The kind of the forward declaration.

Instances6Eq, Show, Generic, NFData, Pretty, Rep