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 :: 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)
    

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

  3. data AnnLookup

    template-haskell Language.Haskell.TH

    Annotation target for reifyAnnotations

  4. AnnLookupModule :: Module -> AnnLookup

    template-haskell Language.Haskell.TH

    No documentation available.

  5. AnnLookupName :: Name -> AnnLookup

    template-haskell Language.Haskell.TH

    No documentation available.

  6. data AnnLookup

    template-haskell Language.Haskell.TH.Syntax

    Annotation target for reifyAnnotations

  7. AnnLookupModule :: Module -> AnnLookup

    template-haskell Language.Haskell.TH.Syntax

    No documentation available.

  8. AnnLookupName :: Name -> AnnLookup

    template-haskell Language.Haskell.TH.Syntax

    No documentation available.

  9. qLookupName :: Quasi m => Bool -> String -> m (Maybe Name)

    template-haskell Language.Haskell.TH.Syntax

    No documentation available.

  10. mgLookupModule :: ModuleGraph -> Module -> Maybe ModSummary

    ghc GHC

    Look up a ModSummary in the ModuleGraph Looks up the non-boot ModSummary Linear in the size of the module graph

Page 178 of many | Previous | Next