Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
maybeQuotes :: Bool -> Doc a -> Doc apretty Text.PrettyPrint.Annotated.HughesPJ maybeBraces :: Bool -> Doc -> Docpretty Text.PrettyPrint.HughesPJ maybeBrackets :: Bool -> Doc -> Docpretty Text.PrettyPrint.HughesPJ maybeDoubleQuotes :: Bool -> Doc -> Docpretty Text.PrettyPrint.HughesPJ Apply doubleQuotes to Doc if boolean is true.
maybeParens :: Bool -> Doc -> Docpretty Text.PrettyPrint.HughesPJ 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