There was an error while loading. Please reload this page.
1 parent 486b6e8 commit 03eee3aCopy full SHA for 03eee3a
1 file changed
src/Data/Profunctor/Filtrator.hs
@@ -39,8 +39,8 @@ class (Cochoice p, forall x. Filterable (p x))
39
=> Filtrator p where
40
41
{- |
42
- prop> unleft = fst . filtrate = mapMaybe (either Just (const Nothing)) . lmap Left
43
- prop> unright = snd . filtrate = mapMaybe (either (const Nothing) Just) . lmap Right
+ prop> unleft = fst . filtrate = lmap Left . mapMaybe (either Just (const Nothing))
+ prop> unright = snd . filtrate = lmap Right . mapMaybe (either (const Nothing) Just)
44
45
`filtrate` is a distant relative to `Data.Either.partitionEithers`.
46
`filtrate` can be given a default value for `Monadic`
0 commit comments