Modulewitherable-0.5
Witherable
- 1 type
- 4 classes
- 7 values
- Packagewitherable-0.5
- Exports12
- LicenceBSD-3-Clause
Instances27Filterable, …
Filterable IntMapDefined in witherable-0.5 · WitherableFilterable SeqDefined in witherable-0.5 · WitherableFilterable ZipListDefined in witherable-0.5 · WitherableFilterable MaybeDefined in witherable-0.5 · WitherableFilterable VectorDefined in witherable-0.5 · WitherableFilterable []Defined in witherable-0.5 · WitherableFunctor f => Filterable (MaybeT f)Defined in witherable-0.5 · WitherableMonoid e => Filterable (Either e)Defined in witherable-0.5 · WitherableFilterable ProxyDefined in witherable-0.5 · WitherableFilterable U1Defined in witherable-0.5 · WitherableFilterable V1Defined in witherable-0.5 · WitherableFilterable (Map k)Defined in witherable-0.5 · Witherable(Eq k, Hashable k) => Filterable (HashMap k)Defined in witherable-0.5 · Witherable(Foldable f, Alternative f) => Filterable (WrappedFoldable f)Defined in witherable-0.5 · WitherableFilterable (Const r)Defined in witherable-0.5 · WitherableFilterable f => Filterable (Rec1 f)Defined in witherable-0.5 · WitherableFilterable f => Filterable (IdentityT f)Defined in witherable-0.5 · WitherableFilterable t => Filterable (Backwards t)Defined in witherable-0.5 · WitherableFilterable t => Filterable (Reverse t)Defined in witherable-0.5 · WitherableFilterable (K1 i c)Defined in witherable-0.5 · Witherable(Filterable f, Filterable g) => Filterable (Product f g)Defined in witherable-0.5 · Witherable(Filterable f, Filterable g) => Filterable (Sum f g)Defined in witherable-0.5 · Witherable(Filterable f, Filterable g) => Filterable (f :*: g)Defined in witherable-0.5 · Witherable(Filterable f, Filterable g) => Filterable (f :+: g)Defined in witherable-0.5 · WitherableFilterable f => Filterable (M1 i c f)Defined in witherable-0.5 · Witherable(Functor f, Filterable g) => Filterable (Compose f g)Defined in witherable-0.5 · Witherable(Functor f, Filterable g) => Filterable (f :.: g)Defined in witherable-0.5 · Witherable
class
class (FunctorWithIndex i t, Filterable t) => FilterableWithIndex i (t :: Type -> Type) | t -> i whereInstances16FilterableWithIndex, …
FilterableWithIndex Int IntMapDefined in witherable-0.5 · WitherableFilterableWithIndex Int SeqDefined in witherable-0.5 · WitherableFilterableWithIndex Int ZipListDefined in witherable-0.5 · WitherableFilterableWithIndex Int VectorDefined in witherable-0.5 · WitherableFilterableWithIndex Int []Defined in witherable-0.5 · WitherableFilterableWithIndex () MaybeDefined in witherable-0.5 · WitherableFilterableWithIndex Void ProxyDefined in witherable-0.5 · WitherableFilterableWithIndex k (Map k)Defined in witherable-0.5 · Witherable(Eq k, Hashable k) => FilterableWithIndex k (HashMap k)Defined in witherable-0.5 · Witherable(FunctorWithIndex i f, FoldableWithIndex i f, Alternative f) => FilterableWithIndex i (WrappedFoldable f)Defined in witherable-0.5 · WitherableFilterableWithIndex i f => FilterableWithIndex i (IdentityT f)Defined in witherable-0.5 · WitherableFilterableWithIndex i t => FilterableWithIndex i (Backwards t)Defined in witherable-0.5 · WitherableFilterableWithIndex i t => FilterableWithIndex i (Reverse t)Defined in witherable-0.5 · Witherable(FilterableWithIndex i f, FilterableWithIndex j g) => FilterableWithIndex (Either i j) (Product f g)Defined in witherable-0.5 · Witherable(FilterableWithIndex i f, FilterableWithIndex j g) => FilterableWithIndex (Either i j) (Sum f g)Defined in witherable-0.5 · Witherable(FunctorWithIndex i f, FilterableWithIndex j g) => FilterableWithIndex (i, j) (Compose f g)Defined in witherable-0.5 · Witherable
Methods
wither :: Applicative f => (a -> f (Maybe b)) -> t a -> f (t b)witherM :: Monad m => (a -> m (Maybe b)) -> t a -> m (t b)filterA :: Applicative f => (a -> f Bool) -> t a -> f (t a)witherMap :: Applicative m => (t b -> r) -> (a -> m (Maybe b)) -> t a -> m r
Instances27Witherable, …
Witherable IntMapDefined in witherable-0.5 · WitherableWitherable SeqDefined in witherable-0.5 · WitherableWitherable ZipListDefined in witherable-0.5 · WitherableWitherable MaybeDefined in witherable-0.5 · WitherableWitherable VectorDefined in witherable-0.5 · WitherableWitherable []Defined in witherable-0.5 · WitherableMonoid e => Witherable (Either e)Defined in witherable-0.5 · WitherableTraversable t => Witherable (MaybeT t)Defined in witherable-0.5 · WitherableWitherable ProxyDefined in witherable-0.5 · WitherableWitherable U1Defined in witherable-0.5 · WitherableWitherable V1Defined in witherable-0.5 · WitherableWitherable (Map k)Defined in witherable-0.5 · Witherable(Alternative f, Traversable f) => Witherable (WrappedFoldable f)Defined in witherable-0.5 · Witherable(Eq k, Hashable k) => Witherable (HashMap k)Defined in witherable-0.5 · WitherableWitherable (Const r)Defined in witherable-0.5 · WitherableWitherable f => Witherable (Rec1 f)Defined in witherable-0.5 · WitherableWitherable f => Witherable (IdentityT f)Defined in witherable-0.5 · WitherableWitherable t => Witherable (Backwards t)Defined in witherable-0.5 · WitherableWitherable t => Witherable (Reverse t)Defined in witherable-0.5 · WitherableWitherable (K1 i c)Defined in witherable-0.5 · Witherable(Witherable f, Witherable g) => Witherable (Product f g)Defined in witherable-0.5 · Witherable(Witherable f, Witherable g) => Witherable (Sum f g)Defined in witherable-0.5 · Witherable(Witherable f, Witherable g) => Witherable (f :*: g)Defined in witherable-0.5 · Witherable(Witherable f, Witherable g) => Witherable (f :+: g)Defined in witherable-0.5 · WitherableWitherable f => Witherable (M1 i c f)Defined in witherable-0.5 · Witherable(Traversable f, Witherable g) => Witherable (Compose f g)Defined in witherable-0.5 · Witherable(Traversable f, Witherable g) => Witherable (f :.: g)Defined in witherable-0.5 · Witherable
class
class (TraversableWithIndex i t, FilterableWithIndex i t, Witherable t) => WitherableWithIndex i (t :: Type -> Type) | t -> i whereMethods
iwither :: Applicative f => (i -> a -> f (Maybe b)) -> t a -> f (t b)iwitherM :: Monad m => (i -> a -> m (Maybe b)) -> t a -> m (t b)ifilterA :: Applicative f => (i -> a -> f Bool) -> t a -> f (t a)
Instances15WitherableWithIndex, …
WitherableWithIndex Int IntMapDefined in witherable-0.5 · WitherableWitherableWithIndex Int SeqDefined in witherable-0.5 · WitherableWitherableWithIndex Int ZipListDefined in witherable-0.5 · WitherableWitherableWithIndex Int VectorDefined in witherable-0.5 · WitherableWitherableWithIndex Int []Defined in witherable-0.5 · WitherableWitherableWithIndex () MaybeDefined in witherable-0.5 · WitherableWitherableWithIndex Void ProxyDefined in witherable-0.5 · WitherableWitherableWithIndex k (Map k)Defined in witherable-0.5 · Witherable(Eq k, Hashable k) => WitherableWithIndex k (HashMap k)Defined in witherable-0.5 · WitherableWitherableWithIndex i f => WitherableWithIndex i (IdentityT f)Defined in witherable-0.5 · WitherableWitherableWithIndex i t => WitherableWithIndex i (Backwards t)Defined in witherable-0.5 · WitherableWitherableWithIndex i t => WitherableWithIndex i (Reverse t)Defined in witherable-0.5 · Witherable(WitherableWithIndex i f, WitherableWithIndex j g) => WitherableWithIndex (Either i j) (Product f g)Defined in witherable-0.5 · Witherable(WitherableWithIndex i f, WitherableWithIndex j g) => WitherableWithIndex (Either i j) (Sum f g)Defined in witherable-0.5 · Witherable(TraversableWithIndex i f, WitherableWithIndex j g) => WitherableWithIndex (i, j) (Compose f g)Defined in witherable-0.5 · Witherable
Constructors
WrapFilterableunwrapFoldable :: f a
Instances11FoldableWithIndex, FunctorWithIndex, TraversableWithIndex, FilterableWithIndex, Functor, Applicative, …
FoldableWithIndex i f => FoldableWithIndex i (WrappedFoldable f)Defined in witherable-0.5 · WitherableFunctorWithIndex i f => FunctorWithIndex i (WrappedFoldable f)Defined in witherable-0.5 · WitherableTraversableWithIndex i f => TraversableWithIndex i (WrappedFoldable f)Defined in witherable-0.5 · Witherable(FunctorWithIndex i f, FoldableWithIndex i f, Alternative f) => FilterableWithIndex i (WrappedFoldable f)Defined in witherable-0.5 · WitherableFunctor f => Functor (WrappedFoldable f)Defined in witherable-0.5 · WitherableApplicative f => Applicative (WrappedFoldable f)Defined in witherable-0.5 · WitherableFoldable f => Foldable (WrappedFoldable f)Defined in witherable-0.5 · WitherableTraversable f => Traversable (WrappedFoldable f)Defined in witherable-0.5 · WitherableAlternative f => Alternative (WrappedFoldable f)Defined in witherable-0.5 · Witherable(Foldable f, Alternative f) => Filterable (WrappedFoldable f)Defined in witherable-0.5 · Witherable(Alternative f, Traversable f) => Witherable (WrappedFoldable f)Defined in witherable-0.5 · Witherable