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. promotedJustDataCon :: TyCon

    ghc-lib-parser GHC.Builtin.Types

    No documentation available.

  2. mapAdjust :: (v -> v) -> Label -> LabelMap v -> LabelMap v

    ghc-lib-parser GHC.Cmm.Dataflow.Label

    No documentation available.

  3. mkJustExpr :: Type -> CoreExpr -> CoreExpr

    ghc-lib-parser GHC.Core.Make

    Makes a Just from a value of the specified type

  4. adjustDTyConEnv :: (a -> a) -> DTyConEnv a -> TyCon -> DTyConEnv a

    ghc-lib-parser GHC.Core.TyCon.Env

    No documentation available.

  5. expectJust :: HasDebugCallStack => String -> Maybe a -> a

    ghc-lib-parser GHC.Data.Maybe

    No documentation available.

  6. firstJust :: Maybe a -> Maybe a -> Maybe a

    ghc-lib-parser GHC.Data.Maybe

    No documentation available.

  7. firstJusts :: Foldable f => f (Maybe a) -> Maybe a

    ghc-lib-parser GHC.Data.Maybe

    Takes a list of Maybes and returns the first Just if there is one, or Nothing otherwise.

  8. firstJustsM :: (Monad m, Foldable f) => f (m (Maybe a)) -> m (Maybe a)

    ghc-lib-parser GHC.Data.Maybe

    Takes computations returnings Maybes; tries each one in order. The first one to return a Just wins. Returns Nothing if all computations return Nothing.

  9. whenIsJust :: Monad m => Maybe a -> (a -> m ()) -> m ()

    ghc-lib-parser GHC.Data.Maybe

    No documentation available.

  10. adjust :: (a -> a) -> Key -> Word64Map a -> Word64Map a

    ghc-lib-parser GHC.Data.Word64Map.Internal

    Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.

    adjust ("new " ++) 5 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "new a")]
    adjust ("new " ++) 7 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "a")]
    adjust ("new " ++) 7 empty                         == empty
    

Page 55 of many | Previous | Next