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.Interaction.Library.Base

Basic data types for library management.

  • 21 types
  • 25 values
  • PackageAgda-2.8.0.2
  • Exports46
  • LanguageHaskell2010
  • LicenceMIT
  • SourceBase.hs
datadata LibName
#

A symbolic library name.

Library names are structured into the base name and a suffix of version numbers, e.g. mylib-1.2.3. The version suffix is optional.

Constructors

Instances9Eq, Ord, Show, Generic, NFData, Hashable, …
valueparseLibName :: String -> LibName
#

Split a library name into basename and a list of version numbers.

parseLibName "foo-1.2.3"    == LibName "foo" [1, 2, 3]
parseLibName "foo-01.002.3" == LibName "foo" [1, 2, 3]

Note that because of leading zeros, parseLibName is not injective. (prettyShow . parseLibName would produce a normal form.)

datadata LibrariesFile
#

Constructors

Instances4Show, Generic, NFData, Rep
datadata ExecutablesFile
#

Constructors

Instances5Show, Generic, NFData, EmbPrj, Rep

The special name "." is used to indicated that the current directory should count as a project root.

datadata ProjectConfig
#

A file can either belong to a project located at a given root containing an .agda-lib file, or be part of the default project.

Constructors

Instances3Generic, NFData, Rep
datadata OptionsPragma
#

The options from an OPTIONS pragma (or a .agda-lib file).

In the future it might be nice to switch to a more structured representation. Note that, currently, there is not a one-to-one correspondence between list elements and options.

Constructors

Instances5Show, Semigroup, Monoid, NFData, EmbPrj
datadata AgdaLibFile
#

Content of a .agda-lib file.

Constructors

Instances4Show, Generic, NFData, Rep

Lenses

0 declarations

Lenses for ProjectConfig

Lenses for AgdaLibFile

Library warnings and errors

0 declarations

Position information

datadata LibPositionInfo
#

Information about which .agda-lib file we are reading and from where in the libraries file it came from.

Constructors

Instances5Show, Generic, NFData, EmbPrj, Rep

Warnings

datadata LibWarning
#
Instances6Show, Generic, NFData, Pretty, EmbPrj, Rep
datadata LibWarning'
#

Library Warnings.

Constructors

Instances6Show, Generic, NFData, Pretty, EmbPrj, Rep

Errors

3 declarations
datadata LibError
#
Instances4Show, Generic, NFData, Rep
datadata LibError'
#

Collected errors while processing library files.

Constructors

Instances5Show, Generic, NFData, Pretty, Rep
datadata LibParseError
#

Exceptions thrown by the .agda-lib parser.

Constructors

Instances5Show, Generic, NFData, Pretty, Rep

Raising warnings and errors

Library Monad

10 declarations
datadata LibCache
#

Cache locations of project configurations and parsed .agda-lib files.

Constructors

Instances4Generic, NFData, Null, Rep
datadata LibErrors
#

Collected errors when processing an .agda-lib file.

Instances4Show, Generic, NFData, Rep

Prettyprinting errors and warnings

5 declarations

Orphan instances

1 instance