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

Use non-deprecated Map and Set folds #37

Merged
merged 1 commit into from
Feb 7, 2017

Conversation

treeowl
Copy link
Contributor

@treeowl treeowl commented Feb 7, 2017

fold and foldWithKey are now deprecated in containers.
This package's use causes GHC validation to fail with
containers-0.5.10.1.

mapFold k z (UM m) = M.fold k z m
mapFoldWithKey k z (UM m) = M.foldWithKey (k . intToUnique) z m
mapFold k z (UM m) = M.foldr k z m
mapFoldWithKey k z (UM m) = M.foldrWithKey (k . intToUnique) z m
mapFilter f (UM m) = UM (M.filter f m)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Erikd made a change to fix M.fold and M.foldWithKey. The change was merged, however that change didn't fix S.fold. Please sync with the master, and resubmit the pull request. Thanks.

`fold` and `foldWithKey` are now deprecated in `containers`.
This package's use causes GHC validation to fail with
`containers-0.5.10.1`.
@treeowl
Copy link
Contributor Author

treeowl commented Feb 7, 2017 via email

@mlite mlite merged commit 46d43d4 into haskell:master Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants