Skip to content

Commit 03eee3a

Browse files
committed
Update Filtrator.hs
1 parent 486b6e8 commit 03eee3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Data/Profunctor/Filtrator.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class (Cochoice p, forall x. Filterable (p x))
3939
=> Filtrator p where
4040

4141
{- |
42-
prop> unleft = fst . filtrate = mapMaybe (either Just (const Nothing)) . lmap Left
43-
prop> unright = snd . filtrate = mapMaybe (either (const Nothing) Just) . lmap Right
42+
prop> unleft = fst . filtrate = lmap Left . mapMaybe (either Just (const Nothing))
43+
prop> unright = snd . filtrate = lmap Right . mapMaybe (either (const Nothing) Just)
4444
4545
`filtrate` is a distant relative to `Data.Either.partitionEithers`.
4646
`filtrate` can be given a default value for `Monadic`

0 commit comments

Comments
 (0)