Safe Haskell | None |
---|---|

Language | Haskell2010 |

Utilities for data validation

## Synopsis

- (>!) :: (Ord a, Show a) => a -> a -> ErrorOr ()
- (>=!) :: (Ord a, Show a) => a -> a -> ErrorOr ()
- (<!) :: (Ord a, Show a) => a -> a -> ErrorOr ()
- (<=!) :: (Ord a, Show a) => a -> a -> ErrorOr ()
- (=!) :: (Eq a, Show a) => a -> a -> ErrorOr ()
- (/=!) :: (Eq a, Show a) => a -> a -> ErrorOr ()
- ensure :: Text -> Bool -> ErrorOr ()
- ensureIsNothing :: Show a => Maybe a -> ErrorOr ()
- ensureIsJust :: Maybe a -> ErrorOr ()
- approxEqual :: (RealFrac a, Show a) => Double -> a -> a -> ErrorOr ()
- ensureAll :: Show a => (a -> ErrorOr ()) -> [a] -> ErrorOr ()