Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
filterMap :: (a -> Maybe b) -> Trie a -> Trie bbytestring-trie Data.Trie Apply a function to all values, potentially removing them.
Laws
The fission/fusion laws are essentially the same, they differ only in which direction is more "natural" for use as a rewrite rule. The conservation law is just a special case of fusion, but it's a particularly helpful one to take note of.submap :: ByteString -> Trie a -> Trie abytestring-trie Data.Trie Return the subtrie containing all keys beginning with a prefix.
contextualFilterMap :: (a -> Trie a -> Maybe b) -> Trie a -> Trie bbytestring-trie Data.Trie.Internal Contextual variant of filterMap.
contextualMap :: (a -> Trie a -> b) -> Trie a -> Trie bbytestring-trie Data.Trie.Internal A variant of fmap which provides access to the subtrie rooted at each value.
contextualMap' :: (a -> Trie a -> b) -> Trie a -> Trie bbytestring-trie Data.Trie.Internal A variant of contextualMap which evaluates the function strictly.
contextualMapBy :: (ByteString -> a -> Trie a -> Maybe b) -> Trie a -> Trie bbytestring-trie Data.Trie.Internal Contextual variant of mapBy, aka keyed variant of contextualFilterMap. Warning: This function suffers Bug #25.
filterMap :: (a -> Maybe b) -> Trie a -> Trie bbytestring-trie Data.Trie.Internal Apply a function to all values, potentially removing them.
Laws
The fission/fusion laws are essentially the same, they differ only in which direction is more "natural" for use as a rewrite rule. The conservation law is just a special case of fusion, but it's a particularly helpful one to take note of.submap :: ByteString -> Trie a -> Trie abytestring-trie Data.Trie.Internal Return the subtrie containing all keys beginning with a prefix.
buildDebVersionMap :: IO DebMapcabal-debian Debian.Debianize Query versions of installed packages
dpkgFileMap :: IO (Map FilePath (Set BinPkgName))cabal-debian Debian.Debianize Create a map from pathname to the names of the packages that contains that pathname using the contents of the debian package info directory varlibdpkginfo.