Skip to content

Commit 1ec2ef1

Browse files
gabejohnsonLiamGoodacre
authored andcommitted
Have Witherable inherit from Filterable instead of Compactable
1 parent d8e1dff commit 1ec2ef1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Data/Witherable.purs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ module Data.Witherable
99
, withered
1010
, witherDefault
1111
, wiltDefault
12-
, module Data.Compactable
12+
, module Data.Filterable
1313
) where
1414

1515
import Control.Applicative (class Applicative, pure)
1616
import Control.Category ((<<<), id)
17-
import Data.Compactable (class Compactable, compact, separate)
17+
import Data.Compactable (compact, separate)
1818
import Data.Either (Either(..))
19+
import Data.Filterable (class Filterable)
1920
import Data.Functor (map)
2021
import Data.Identity (Identity(..))
2122
import Data.List (List)
@@ -53,7 +54,7 @@ import Prelude (class Ord)
5354
-- | - `partitionMapByWilt`
5455
-- | - `filterMapByWither`
5556
-- | - `traverseByWither`
56-
class (Compactable t, Traversable t) <= Witherable t where
57+
class (Filterable t, Traversable t) <= Witherable t where
5758
wilt :: forall m a l r. Applicative m =>
5859
(a -> m (Either l r)) -> t a -> m { left :: t l, right :: t r }
5960

0 commit comments

Comments
 (0)