Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. mapMaybe :: forall (m :: Type -> Type) a b . Functor m => (a -> Maybe b) -> SourceT m a -> SourceT m b

    servant Servant.Types.SourceT

    Filter values.

    >>> toList $ mapMaybe (\x -> if odd x then Just x else Nothing) (source [0..10]) :: [Int]
    [1,3,5,7,9]
    
    >>> mapMaybe (\x -> if odd x then Just x else Nothing) (source [0..2]) :: SourceT Identity Int
    fromStepT (Effect (Identity (Skip (Yield 1 (Skip Stop)))))
    
    Illustrates why we need Skip.

  2. mapMaybeStep :: forall (m :: Type -> Type) a b . Functor m => (a -> Maybe b) -> StepT m a -> StepT m b

    servant Servant.Types.SourceT

    No documentation available.

  3. mapMG :: (ModSummary -> ModSummary) -> ModuleGraph -> ModuleGraph

    ghc GHC

    Map a function f over all the ModSummaries. To preserve invariants f can't change the isBoot status.

  4. mapMap :: (a -> v) -> LabelMap a -> LabelMap v

    ghc GHC.Cmm.Dataflow.Label

    No documentation available.

  5. mapMapWithKey :: (Label -> a -> v) -> LabelMap a -> LabelMap v

    ghc GHC.Cmm.Dataflow.Label

    No documentation available.

  6. mapMember :: Label -> LabelMap a -> Bool

    ghc GHC.Cmm.Dataflow.Label

    No documentation available.

  7. mapMaybeDTyConEnv :: (a -> Maybe b) -> DTyConEnv a -> DTyConEnv b

    ghc GHC.Core.TyCon.Env

    No documentation available.

  8. mapMaybeBag :: (a -> Maybe b) -> Bag a -> Bag b

    ghc GHC.Data.Bag

    No documentation available.

  9. mapMaybeBagM :: Monad m => (a -> m (Maybe b)) -> Bag a -> m (Bag b)

    ghc GHC.Data.Bag

    No documentation available.

  10. mapMaybeFsEnv :: (elt1 -> Maybe elt2) -> FastStringEnv elt1 -> FastStringEnv elt2

    ghc GHC.Data.FastString.Env

    No documentation available.

Page 20 of many | Previous | Next