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.

  1. 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)
    

  2. 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")
    

  3. finder_lookupHomeInterfaces :: FinderOpts -> Bool

    ghc GHC.Driver.Config.Finder

    When looking up a home module:

    • True: search interface files (e.g. in '-c' mode)
    • False: search source files (e.g. in '--make' mode)

  4. kv_lookup :: KnotVars a -> Module -> Maybe a

    ghc GHC.Driver.Env.KnotVars

    No documentation available.

  5. hscTcRcLookupName :: HscEnv -> Name -> IO (Maybe TyThing)

    ghc GHC.Driver.Main

    No documentation available.

  6. hscTcRnLookupRdrName :: HscEnv -> LocatedN RdrName -> IO (NonEmpty Name)

    ghc GHC.Driver.Main

    Lookup things in the compiler's environment

  7. modNodeMapLookup :: ModNodeKey -> ModNodeMap a -> Maybe a

    ghc GHC.Driver.Make

    No documentation available.

  8. dsLookupConLike :: Name -> DsM ConLike

    ghc GHC.HsToCore.Monad

    No documentation available.

  9. dsLookupDataCon :: Name -> DsM DataCon

    ghc GHC.HsToCore.Monad

    No documentation available.

  10. dsLookupGlobal :: Name -> DsM TyThing

    ghc GHC.HsToCore.Monad

    No documentation available.

Page 181 of many | Previous | Next