HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleenvparse-0.6.0Haskell2010

Env.Internal.Error

This module contains an extensible error infrastructure.

Each kind of errors gets a separate type class which encodes a Prism (roughly a getter and a constructor). The Readers, then, have the constraints for precisely the set of errors they can return.

  • 1 type
  • 3 classes
  • Packageenvparse-0.6.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceError.hs
datadata Error
#

The type of errors returned by envparse's Readers. These fall into 3 categories:

  • Variables that are unset in the environment.

  • Variables whose value is empty.

  • Variables whose value cannot be parsed.

Instances5Eq, Show, AsEmpty, AsUnread, AsUnset
  • Eq ErrorDefined in envparse-0.6.0 · Env.Internal.Error
  • Show ErrorDefined in envparse-0.6.0 · Env.Internal.Error
  • AsEmpty ErrorDefined in envparse-0.6.0 · Env.Internal.Error
  • AsUnread ErrorDefined in envparse-0.6.0 · Env.Internal.Error
  • AsUnset ErrorDefined in envparse-0.6.0 · Env.Internal.Error
classclass AsUnset e where
#

The class of types that contain and can be constructed from the error returned from parsing unset variables.

Methods

Instances1AsUnset
  • AsUnset ErrorDefined in envparse-0.6.0 · Env.Internal.Error
classclass AsEmpty e where
#

The class of types that contain and can be constructed from the error returned from parsing variables whose value is empty.

Methods

Instances1AsEmpty
  • AsEmpty ErrorDefined in envparse-0.6.0 · Env.Internal.Error
classclass AsUnread e where
#

The class of types that contain and can be constructed from the error returned from parsing variable whose value cannot be parsed.

Methods

Instances1AsUnread