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
Closed

Add asumMap #81

chshersh opened this issue Sep 16, 2018 · 0 comments
Labels
good first issue Good for newcomers Hacktoberfest https://hacktoberfest.digitalocean.com/ new Bring something new into library (add function or type or interface)

Comments

@chshersh
Copy link
Contributor

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 Bring something new into library (add function or type or interface) label Sep 16, 2018
@vrom911 vrom911 added good first issue Good for newcomers Hacktoberfest https://hacktoberfest.digitalocean.com/ labels Sep 30, 2018
@vrom911 vrom911 added this to To do in #2: Hacktoberfest (October, 2018) via automation Sep 30, 2018
@cronokirby cronokirby mentioned this issue Sep 30, 2018
10 tasks
#2: Hacktoberfest (October, 2018) automation moved this from To do to Done Oct 1, 2018
chshersh pushed a commit that referenced this issue Oct 1, 2018
* 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 pushed a commit that referenced this issue Oct 3, 2018
* 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 pushed a commit that referenced this issue Oct 5, 2018
* 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 pushed a commit that referenced this issue Oct 6, 2018
* 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
Labels
good first issue Good for newcomers Hacktoberfest https://hacktoberfest.digitalocean.com/ new Bring something new into library (add function or type or interface)
Projects
No open projects
Development

No branches or pull requests

2 participants