Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. mapMaybeWithKey :: (Key -> a -> Maybe b) -> Word64Map a -> Word64Map b

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

    Map keys/values and collect the Just results.

    let f k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing
    mapMaybeWithKey f (fromList [(5,"a"), (3,"b")]) == singleton 3 "key : 3"
    

  2. mapMaybeWithKey :: (Key -> a -> Maybe b) -> Word64Map a -> Word64Map b

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

    Map keys/values and collect the Just results.

    let f k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing
    mapMaybeWithKey f (fromList [(5,"a"), (3,"b")]) == singleton 3 "key : 3"
    

  3. mapMaybeWithKey :: (Key -> a -> Maybe b) -> Word64Map a -> Word64Map b

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

    Map keys/values and collect the Just results.

    let f k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing
    mapMaybeWithKey f (fromList [(5,"a"), (3,"b")]) == singleton 3 "key : 3"
    

  4. mapMaybeWithKey :: (Key -> a -> Maybe b) -> Word64Map a -> Word64Map b

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

    Map keys/values and collect the Just results.

    let f k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing
    mapMaybeWithKey f (fromList [(5,"a"), (3,"b")]) == singleton 3 "key : 3"
    

  5. mapMaybeNameEnv :: (a -> Maybe b) -> NameEnv a -> NameEnv b

    ghc-lib-parser GHC.Types.Name.Env

    No documentation available.

  6. mapMaybeOccEnv :: (a -> Maybe b) -> OccEnv a -> OccEnv b

    ghc-lib-parser GHC.Types.Name.Occurrence

    mapMaybe for b OccEnv.

  7. mapMaybeUniqSet_sameUnique :: (a -> Maybe b) -> UniqSet a -> UniqSet b

    ghc-lib-parser GHC.Types.Unique.Set

    Like mapMaybe, but you must ensure the passed in function does not change the Unique.

  8. mapMaybeModuleEnv :: (Module -> a -> Maybe b) -> ModuleEnv a -> ModuleEnv b

    ghc-lib-parser GHC.Unit.Module.Env

    No documentation available.

  9. mapMaybe' :: Foldable f => (a -> Maybe b) -> f a -> [b]

    ghc-lib-parser GHC.Utils.Misc

    No documentation available.

  10. mapMaybeM :: Applicative m => (a -> m (Maybe b)) -> [a] -> m [b]

    ghc-lib-parser GHC.Utils.Monad

    Applicative version of mapMaybe

Page 21 of many | Previous | Next