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.
maybeQuotes :: Bool -> Doc -> Docpretty Text.PrettyPrint.HughesPJ 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.
maybePrefixOf :: Eq a => [a] -> [a] -> Maybe [a]utility-ht Data.List.HT maybePrefixOf xs ys is Just zs if xs is a prefix of ys, where zs is ys without the prefix xs. Otherwise it is Nothing. It is the same as stripPrefix.
>>> maybePrefixOf "abc" "abcdef" Just "def" >>> maybePrefixOf "def" "abcdef" Nothing
maybeSuffixOf :: Eq a => [a] -> [a] -> Maybe [a]utility-ht Data.List.HT >>> maybeSuffixOf "abc" "abcdef" Nothing >>> maybeSuffixOf "def" "abcdef" Just "abc"
maybeRead :: Read a => String -> Maybe autility-ht Text.Read.HT No documentation available.