-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix deprecation warnings from containers #36
Conversation
Also bumps the lower bound on containers to `>= 0.5` which should be fine since `0.5.0.0` ws released in 2012.
This change breaks with ghc 7.0 but builds successfully with all later versions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the test for 7.0.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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are fold and foldr equivalent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the docs: "This function is an equivalent of foldr and is present for compatibility only."
The docs for foldWIthKey
say it is equivalent to foldrWithKey
.
Docs say the replacements are equivalent to the old functions.
The build failed. If we drop the support of 7.0.1, we need to delete " - CABALVER=1.16 GHCVER=7.0.1" from .travis.yml. Can you make this change too? Thanks. |
@mlite Should be good to go! |
Thanks @mlite ! |
Also bumps the lower bound on containers to
>= 0.5
which should be finesince
0.5.0.0
ws released in 2012.