Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making WitherableWithIndex depend on FilterableWithIndex, rebased #98

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
packages:
./witherable/
./witherable-class/
9 changes: 0 additions & 9 deletions witherable-class/CHANGELOG.md

This file was deleted.

9 changes: 0 additions & 9 deletions witherable-class/Data/Witherable/Class.hs

This file was deleted.

30 changes: 0 additions & 30 deletions witherable-class/LICENSE

This file was deleted.

8 changes: 0 additions & 8 deletions witherable-class/Main.hs

This file was deleted.

2 changes: 0 additions & 2 deletions witherable-class/Setup.hs

This file was deleted.

26 changes: 0 additions & 26 deletions witherable-class/witherable-class.cabal

This file was deleted.

5 changes: 5 additions & 0 deletions witherable/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.5
---

* `FilterableWithIndex` is a superclass of `WitherableWithIndex`.

0.4.2
-------

Expand Down
2 changes: 1 addition & 1 deletion witherable/src/Witherable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class (FunctorWithIndex i t, Filterable t) => FilterableWithIndex i t | t -> i w
{-# INLINE ifilter #-}

-- | Indexed variant of 'Witherable'.
class (TraversableWithIndex i t, Witherable t) => WitherableWithIndex i t | t -> i where
class (TraversableWithIndex i t, FilterableWithIndex i t, Witherable t) => WitherableWithIndex i t | t -> i where
-- | Effectful 'imapMaybe'.
--
-- @'iwither' (\ i -> 'pure' . f i) ≡ 'pure' . 'imapMaybe' f@
Expand Down
3 changes: 1 addition & 2 deletions witherable/witherable.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cabal-version: 2.4
name: witherable
version: 0.4.2
x-revision: 3
version: 0.5
synopsis: filterable traversable
description: A stronger variant of `traverse` which can remove elements and generalised mapMaybe, catMaybes, filter
homepage: https://github.com/fumieval/witherable
Expand Down
Loading