Hoogle Search

Within LTS Haskell 24.64 (ghc-9.10.3)

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

  1. maybeC :: forall (m :: Type -> Type) i o a . Monad m => ConduitT i o m (Maybe a) -> ConduitT i o (MaybeT m) a

    conduit Data.Conduit.Lift

    Wrap the base monad in MaybeT Since 1.0.11

  2. maybeNew :: MonadIO m => (a -> m (Ptr b)) -> Maybe a -> m (Ptr b)

    unliftio UnliftIO.Foreign

    Lifted maybeNew.

  3. maybePeek :: MonadUnliftIO m => (Ptr a -> m b) -> Ptr a -> m (Maybe b)

    unliftio UnliftIO.Foreign

    Unlifted maybePeek.

  4. maybeWith :: MonadIO m => (a -> (Ptr b -> m c) -> m c) -> Maybe a -> (Ptr b -> m c) -> m c

    unliftio UnliftIO.Foreign

    Lifted maybeWith.

  5. maybeM :: Monad m => m b -> (a -> m b) -> m (Maybe a) -> m b

    extra Control.Monad.Extra

    Monadic generalisation of maybe.

  6. maybeToEither :: a -> Maybe b -> Either a b

    extra Data.Either.Extra

    Given a Maybe, convert it to an Either, providing a suitable value for the Left should the value be Nothing.

    \a b -> maybeToEither a (Just b) == Right b
    \a -> maybeToEither a Nothing == Left a
    

  7. maybeM :: Monad m => m b -> (a -> m b) -> m (Maybe a) -> m b

    extra Extra

    Monadic generalisation of maybe.

  8. maybeToEither :: a -> Maybe b -> Either a b

    extra Extra

    Given a Maybe, convert it to an Either, providing a suitable value for the Left should the value be Nothing.

    \a b -> maybeToEither a (Just b) == Right b
    \a -> maybeToEither a Nothing == Left a
    

  9. maybeLeft :: Either a b -> Maybe a

    utility-ht Data.Either.HT

    No documentation available.

  10. maybeRight :: Either a b -> Maybe b

    utility-ht Data.Either.HT

    No documentation available.

Page 26 of many | Previous | Next