HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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.