We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
Haskell Set doesn't have a Functor instance.
The reason given is that the Functor law:
fmap (g . f) = fmap g . fmap f
can be violated. On the right duplicates are removed using f and then g . Whereas on the left duplicates are removed using g only.
f
g
I'm not sure if this is an issue for our Set implementation.
Sorry, something went wrong.
Right, forgot about that. But we should have Set.map at least.
Set.map
I also have an implementation of isSubset. This should be in stdlib and probably should be improved.
isSubset
isSubset {A} {{Ord A}} (sub sup : Set A) : Bool := all (x in Set.toList sub) Set.isMember x sup;
7c7162a
lukaszcz
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: