| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Tasty.SmallCheck.Lens.Prism
Documentation
testPrism :: (Eq s, Eq a, Show s, Show a, Serial IO a, Serial Identity a, CoSerial IO a, Serial IO s) => Prism' s a -> TestTree Source
A Prism' is only legal if it is a valid Traversal' (see
testTraversal), and if the following laws hold:
preview l (review l b) ≡ Just b"
maybe s (review l) (preview l s) ≡ s