HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduledata-checked-0.3Haskell98

Data.Checked

Type-indexed runtime-checked properties.

  • 1 type
  • 1 class
  • 6 values
  • Packagedata-checked-0.3
  • Exports8
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceChecked.hs
newtypenewtype Checked p v
#

Wrapper-evidence for property p.

Instances1NFData
valuetrustMe :: v -> Checked p v
#

Use when the property can be deduced without a runtime check.

valuetrustThat :: p -> v -> Checked p v
#

Use when the property can be deduced without a runtime check.

valuetrustMap :: (v -> v) -> Checked p v -> Checked p v
#

Apply a fuction that preserves the property to the checked value.

classclass Property p v where
#

Methods

  • holds :: p -> v -> Bool

    Test if the property holds for the given value. The first argument is supposed to be ignored.