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.

  1. maybeQuotes :: Bool -> Doc a -> Doc a

    pretty Text.PrettyPrint.Annotated.HughesPJ

    Apply quotes to Doc if boolean is true.

  2. maybeBraces :: Bool -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    Apply braces to Doc if boolean is true.

  3. maybeBrackets :: Bool -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    Apply brackets to Doc if boolean is true.

  4. maybeDoubleQuotes :: Bool -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    Apply doubleQuotes to Doc if boolean is true.

  5. maybeParens :: Bool -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    Apply parens to Doc if boolean is true.

  6. maybeQuotes :: Bool -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    Apply quotes to Doc if boolean is true.

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

    extra Control.Monad.Extra

    Monadic generalisation of maybe.

  8. 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
    

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

    extra Extra

    Monadic generalisation of maybe.

  10. 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
    

Page 31 of many | Previous | Next