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

Moduledata-checked-0.3Haskell98

Data.Checked.Strict

A version of Checked that requires client code to provide a non-bottom value of the property index type to use trust* functions.

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

Wrapper-evidence for property p.

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

Use when the property can be deduced without a runtime check. Note that p is evaluated to WHNF, so you can't use undefined.

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

Apply a fuction that preserves the property to the checked value. Note that p is evaluated to WHNF, so you can't use undefined.

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.