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 :: Key -> Word64Map a -> (Word64Map a, Maybe a, Word64Map a)ghc GHC.Data.Word64Map.Strict.Internal Performs a split but also returns whether the pivot key was found in the original 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 :: (Key -> a -> Maybe a) -> Key -> Word64Map a -> (Maybe a, Word64Map a)ghc GHC.Data.Word64Map.Strict.Internal Lookup and update. The function returns original value, if it is updated. This is different behavior than updateLookupWithKey. 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 "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")
finder_lookupHomeInterfaces :: FinderOpts -> Boolghc GHC.Driver.Config.Finder When looking up a home module:
kv_lookup :: KnotVars a -> Module -> Maybe aghc GHC.Driver.Env.KnotVars No documentation available.
hscTcRcLookupName :: HscEnv -> Name -> IO (Maybe TyThing)ghc GHC.Driver.Main No documentation available.
hscTcRnLookupRdrName :: HscEnv -> LocatedN RdrName -> IO (NonEmpty Name)ghc GHC.Driver.Main Lookup things in the compiler's environment
modNodeMapLookup :: ModNodeKey -> ModNodeMap a -> Maybe aghc GHC.Driver.Make No documentation available.
dsLookupConLike :: Name -> DsM ConLikeghc GHC.HsToCore.Monad No documentation available.
dsLookupDataCon :: Name -> DsM DataConghc GHC.HsToCore.Monad No documentation available.
dsLookupGlobal :: Name -> DsM TyThingghc GHC.HsToCore.Monad No documentation available.