Hoogle Search
Within LTS Haskell 24.65 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
splitLookup :: Ord k => k -> Map k a -> (Map k a, Maybe a, Map k a)containers Data.Map.Strict.Internal The expression (splitLookup k map) splits a map just like split but also returns lookup k map.
splitLookup 2 (fromList [(5,"a"), (3,"b")]) == (empty, Nothing, fromList [(3,"b"), (5,"a")]) splitLookup 3 (fromList [(5,"a"), (3,"b")]) == (empty, Just "b", singleton 5 "a") splitLookup 4 (fromList [(5,"a"), (3,"b")]) == (singleton 3 "b", Nothing, singleton 5 "a") splitLookup 5 (fromList [(5,"a"), (3,"b")]) == (singleton 3 "b", Just "a", empty) splitLookup 6 (fromList [(5,"a"), (3,"b")]) == (fromList [(3,"b"), (5,"a")], Nothing, empty)
updateLookupWithKey :: Ord k => (k -> a -> Maybe a) -> k -> Map k a -> (Maybe a, Map k a)containers Data.Map.Strict.Internal Lookup and update. See also updateWithKey. The function returns changed value, if it is updated. Returns the original key value if the map entry is deleted.
let f k x = if x == "a" then Just ((show k) ++ ":new a") else Nothing updateLookupWithKey f 5 (fromList [(5,"a"), (3,"b")]) == (Just "5:new a", fromList [(3, "b"), (5, "5:new a")]) updateLookupWithKey f 7 (fromList [(5,"a"), (3,"b")]) == (Nothing, fromList [(3, "b"), (5, "a")]) updateLookupWithKey f 3 (fromList [(5,"a"), (3,"b")]) == (Just "b", singleton 5 "a")
-
template-haskell Language.Haskell.TH Annotation target for reifyAnnotations
AnnLookupModule :: Module -> AnnLookuptemplate-haskell Language.Haskell.TH No documentation available.
AnnLookupName :: Name -> AnnLookuptemplate-haskell Language.Haskell.TH No documentation available.
-
template-haskell Language.Haskell.TH.Syntax Annotation target for reifyAnnotations
AnnLookupModule :: Module -> AnnLookuptemplate-haskell Language.Haskell.TH.Syntax No documentation available.
AnnLookupName :: Name -> AnnLookuptemplate-haskell Language.Haskell.TH.Syntax No documentation available.
qLookupName :: Quasi m => Bool -> String -> m (Maybe Name)template-haskell Language.Haskell.TH.Syntax No documentation available.
mgLookupModule :: ModuleGraph -> Module -> Maybe ModSummaryghc GHC Look up a ModSummary in the ModuleGraph Looks up the non-boot ModSummary Linear in the size of the module graph