HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

  • 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, …

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
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

Lenses for ProjectConfig

Lenses for AgdaLibFile

Library warnings and errors

Position information

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

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

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

Orphan instances

1 instance