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

Add `asumMap` #81

Closed
chshersh opened this issue Sep 16, 2018 · 0 comments

Comments

Projects
2 participants
@chshersh
Copy link
Member

commented Sep 16, 2018

There're useful asum function:

asum :: (Foldable t, Alternative f) => t (f a) -> f a

But sometimes it's desired to have following function:

asumMap :: (Foldable t, Alternative f) => (a -> f b) -> t a -> f b

(not sure about the constraints)

@chshersh chshersh added the new label Sep 16, 2018

@vrom911 vrom911 added this to To do in #2: Hacktoberfest (October, 2018) via automation Sep 30, 2018

@cronokirby cronokirby referenced this issue Sep 30, 2018

Merged

adds asumMap to Foldable #85

6 of 10 tasks complete

@chshersh chshersh closed this in #85 Oct 1, 2018

#2: Hacktoberfest (October, 2018) automation moved this from To do to Done Oct 1, 2018

chshersh added a commit that referenced this issue Oct 1, 2018

adds asumMap to Foldable (#85)
* adds an asumMap function to Foldable

* [#81] updates CHANGELOG.md to reflect asumMap addition

* [#81] Simplifes asumMap, adding an inline pragma, and bumps the package version to 0.3.1

* [#81] Removes a line of whitespace on CHANGELOG to keep formatting consistent

chshersh added a commit that referenced this issue Oct 3, 2018

Adds hlint rules for `asumMap` (#88)
* adds an asumMap function to Foldable

* [#81] updates CHANGELOG.md to reflect asumMap addition

* [#81] Simplifes asumMap, adding an inline pragma, and bumps the package version to 0.3.1

* [#81] Removes a line of whitespace on CHANGELOG to keep formatting consistent

* [#86] adds Hlint rules for 'asumMap'

* updates .hlint.yaml file and fixes hlint.dhall syntax

* [#86] Avoids composition in asumMap hlint rules to play nicer with hlint

* [#86] adds both point free and pointful rules for asumMap in hlint, and updates yaml

* [#86] fixes the first asumMap rule

chshersh added a commit that referenced this issue Oct 5, 2018

Introduces a Relude.Extra.Type module, with a typeName function (#90)
* adds an asumMap function to Foldable

* [#81] updates CHANGELOG.md to reflect asumMap addition

* [#81] Simplifes asumMap, adding an inline pragma, and bumps the package version to 0.3.1

* [#81] Removes a line of whitespace on CHANGELOG to keep formatting consistent

* [#86] adds Hlint rules for 'asumMap'

* updates .hlint.yaml file and fixes hlint.dhall syntax

* [#86] Avoids composition in asumMap hlint rules to play nicer with hlint

* [#86] adds both point free and pointful rules for asumMap in hlint, and updates yaml

* [#86] fixes the first asumMap rule

* [#89] adds Relude.Extra.Type module, containing a typeName function

* updates changelog

* [#89] Formatting: adds line of separation between Relude and other module imports

* [#89] Makes typeName inlineable and have 2 implementations to support ghc 8.0

* [#89] Updates Relude module documentation to talk about Relude.Extra.Type

* Readds accidentally deleted line of documentation [ci skip]

* Simplifies documentation example for typeName [ci skip]

* fixes parentheses in documentation for typeName

chshersh added a commit that referenced this issue Oct 6, 2018

#92 Adds a Relude.Extra.Tuple module (#93)
* adds an asumMap function to Foldable

* [#81] updates CHANGELOG.md to reflect asumMap addition

* [#81] Simplifes asumMap, adding an inline pragma, and bumps the package version to 0.3.1

* [#81] Removes a line of whitespace on CHANGELOG to keep formatting consistent

* [#86] adds Hlint rules for 'asumMap'

* updates .hlint.yaml file and fixes hlint.dhall syntax

* [#86] Avoids composition in asumMap hlint rules to play nicer with hlint

* [#86] adds both point free and pointful rules for asumMap in hlint, and updates yaml

* [#86] fixes the first asumMap rule

* [#89] adds Relude.Extra.Type module, containing a typeName function

* updates changelog

* [#89] Formatting: adds line of separation between Relude and other module imports

* [#89] Makes typeName inlineable and have 2 implementations to support ghc 8.0

* [#89] Updates Relude module documentation to talk about Relude.Extra.Type

* Readds accidentally deleted line of documentation [ci skip]

* Simplifies documentation example for typeName [ci skip]

* fixes parentheses in documentation for typeName

* [#92] Adds a Relude.Extra.Tuple module with a 'dupe' function

* [#92] Adds 'mapToFst' and 'mapToSnd' to Extra.Tuple

* [#92] Adds a mapBoth function

* [#92] Inlines everything in Relude.Extra.Tuple

* Updates changelog

* Updates documentation in Relude module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.