Hoogle Search

Within LTS Haskell 24.21 (ghc-9.10.3)

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

  1. maybeDoubleQuotes :: Bool -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    Apply doubleQuotes to Doc if boolean is true.

  2. maybeParens :: Bool -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    Apply parens to Doc if boolean is true.

  3. maybeQuotes :: Bool -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    Apply quotes to Doc if boolean is true.

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

    extra Control.Monad.Extra

    Monadic generalisation of maybe.

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

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

    extra Extra

    Monadic generalisation of maybe.

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

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

    utility-ht Data.Either.HT

    No documentation available.

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

    utility-ht Data.Either.HT

    No documentation available.

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

Page 31 of many | Previous | Next