Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
module Data.MonoidMap.Internal.
RecoveredMap An ordinary left-biased map similar to Map, implemented in terms of MonoidMap.
unsafeFromMap :: Map k v -> MonoidMap k vmonoidmap-internal Data.MonoidMap.Internal.Unsafe Unsafely constructs a MonoidMap from an ordinary Map. Constructs a MonoidMap in constant time, without imposing the burden of a canonicalisation step to remove null values. When applied to a given Map m, this function expects but does not check the following pre-condition:
all (not . null) m
Not satisfying this pre-condition will result in undefined behaviour. See fromMap for a safe version of this function.-
morpheus-graphql-subscriptions Data.Morpheus.Subscriptions.Internal No documentation available.
concatMap :: (Key -> [Key]) -> IntMultiSet -> IntMultiSetmultiset Data.IntMultiSet O(n). Apply a function to each element, and take the union of the results
fromMap :: IntMap Int -> IntMultiSetmultiset Data.IntMultiSet O(n). Convert an IntMap from elements to occurrences to a multiset.
fromOccurMap :: IntMap Int -> IntMultiSetmultiset Data.IntMultiSet O(1). Convert an IntMap from elements to occurrences to a multiset. Assumes that the IntMap contains only values larger than zero. The precondition (all elements > 0) is not checked.
toMap :: IntMultiSet -> IntMap Intmultiset Data.IntMultiSet O(1). Convert a multiset to an IntMap from elements to number of occurrences.
unionsMap :: (Key -> IntMultiSet) -> IntMultiSet -> IntMultiSetmultiset Data.IntMultiSet O(n). Apply a function to each element, and take the union of the results
concatMap :: Ord b => (a -> [b]) -> MultiSet a -> MultiSet bmultiset Data.MultiSet O(n). Apply a function to each element, and take the union of the results
fromMap :: Map a Occur -> MultiSet amultiset Data.MultiSet O(n). Convert a Map from elements to occurrences to a multiset.