HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.

Synopsis
  • 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.