multiset
multiset copied to clipboard
multiset haskell package
This is required to built this package with `ghc-9.8`. Would appreciate a Hackage metadata edit to fix this as well.
`mapEither` isn't very general as a multiset operation. It generalizes nicely to ```haskell mapPair :: Ord a => (a -> Occur -> ((b, Occur), (c, Occur))) -> MultiSet a ->...
It first builds lists, then converts them lazily into multisets. I think it makes a lot more sense to accumulate those multisets eagerly.
`Data.Set` has: ``` elemAt :: Int -> Set a -> a -- O(log n) deleteAt :: Int -> Set a -> Set a -- O(log n) ``` It would be...
This commit breaks the build on GHC 7.6. Please either depend on a base version high enough to exclude 7.6 or tweak the CPP so the GHC option is not...
There are a bunch of comments on the `Ord` instances suggesting that it might be nice to use a different ordering. This shouldn't be a big deal, I don't think....
As a user, I would like the monad version of map to be provided by the multiset library instead of having to define it locally each time I need it....
`Map` stopped using "hedge" algorithms several years ago: the much simpler divide-and-conquer ones have better-understood performance characteristics and seem to perform better in practice. I don't *think* `IntMap` has ever...
Even though on the docs it says it should work only with positive values, sometimes it is easy missed introducing a hard to find bug (at least It happened to...
Could you please upgrate multiset on stackage for GHC 8.4.* LTS and Nightly? Thank you!