| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Data.Checked
Description
Type-indexed runtime-checked properties.
Documentation
Wrapper-evidence for property p.
trustThat :: p -> v -> Checked p v Source #
Use when the property can be deduced without a runtime check.
trustMap :: (v -> v) -> Checked p v -> Checked p v Source #
Apply a fuction that preserves the property to the checked value.
maybeHolds :: Property p v => p -> v -> Maybe v Source #