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.
-
conduit Data.Conduit.Lift Wrap the base monad in MaybeT Since 1.0.11
maybeNew :: MonadIO m => (a -> m (Ptr b)) -> Maybe a -> m (Ptr b)unliftio UnliftIO.Foreign Lifted maybeNew.
maybePeek :: MonadUnliftIO m => (Ptr a -> m b) -> Ptr a -> m (Maybe b)unliftio UnliftIO.Foreign Unlifted maybePeek.
maybeWith :: MonadIO m => (a -> (Ptr b -> m c) -> m c) -> Maybe a -> (Ptr b -> m c) -> m cunliftio UnliftIO.Foreign Lifted maybeWith.
maybeM :: Monad m => m b -> (a -> m b) -> m (Maybe a) -> m bextra Control.Monad.Extra Monadic generalisation of maybe.
maybeToEither :: a -> Maybe b -> Either a bextra 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
maybeM :: Monad m => m b -> (a -> m b) -> m (Maybe a) -> m bextra Extra Monadic generalisation of maybe.
maybeToEither :: a -> Maybe b -> Either a bextra 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
maybeLeft :: Either a b -> Maybe autility-ht Data.Either.HT No documentation available.
maybeRight :: Either a b -> Maybe butility-ht Data.Either.HT No documentation available.