Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Hedgehog.Optics
Synopsis
- wellFormedPrism :: Monad m => (Show large, Eq large) => (Show small, Eq small) => Gen large -> Gen small -> Prism' large small -> PropertyT m ()
- wellFormedLens :: Monad m => (Show large, Eq large) => (Show small, Eq small) => Gen large -> Gen small -> Lens' large small -> PropertyT m ()
- wellFormedIso :: Monad m => (Show a, Eq a) => (Show b, Eq b) => Gen a -> Gen b -> Iso' a b -> PropertyT m ()
- prismExample :: Monad m => (Show large, Eq large) => (Show small, Eq small) => Prism' large small -> large -> small -> PropertyT m ()
Documentation
Arguments
:: Monad m | |
=> (Show large, Eq large) | |
=> (Show small, Eq small) | |
=> Gen large | |
-> Gen small | |
-> Prism' large small | Prism signifying that the |
-> PropertyT m () |
Checks whether a prism respects the well-formedness laws given in Optics.Prism
Arguments
:: Monad m | |
=> (Show large, Eq large) | |
=> (Show small, Eq small) | |
=> Gen large | |
-> Gen small | |
-> Lens' large small | Lens signifying that the |
-> PropertyT m () |
Checks whether a lens respects the well-formedness laws given in Optics.Lens
Arguments
:: Monad m | |
=> (Show a, Eq a) | |
=> (Show b, Eq b) | |
=> Gen a | |
-> Gen b | |
-> Iso' a b | Isomorphism signifying that types
|
-> PropertyT m () |
Checks whether an isomorphism respects the well-formedness laws given in Optics.Iso