Hoogle Search

Within LTS Haskell 24.65 (ghc-9.10.3)

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

  1. warnMaybe :: Warn a -> Maybe a

    markup-parse MarkupParse

    Returns results, if any, ignoring warnings.

    >>> warnMaybe $ (tokenize Html) "<foo><baz"
    Just [OpenTag StartTag "foo" []]
    

  2. prop_smapMaybe :: forall r ix e a . (Eq a, Show a, Stream r ix e, Foldable (Array r ix)) => Array r ix e -> Fun e (Maybe a) -> Property

    massiv-test Test.Massiv.Array.Delayed

    No documentation available.

  3. epsilonMaybeEq :: (Show a, RealFloat a) => a -> a -> a -> Maybe String

    massiv-test Test.Massiv.Utils

    No documentation available.

  4. fromMaybe :: a -> Maybe a -> a

    massiv-test Test.Massiv.Utils

    The fromMaybe function takes a default value and a Maybe value. If the Maybe is Nothing, it returns the default value; otherwise, it returns the value contained in the Maybe.

    Examples

    Basic usage:
    >>> fromMaybe "" (Just "Hello, World!")
    "Hello, World!"
    
    >>> fromMaybe "" Nothing
    ""
    
    Read an integer from a string using readMaybe. If we fail to parse an integer, we want to return 0 by default:
    >>> import GHC.Internal.Text.Read ( readMaybe )
    
    >>> fromMaybe 0 (readMaybe "5")
    5
    
    >>> fromMaybe 0 (readMaybe "")
    0
    

  5. suchThatMaybe :: Gen a -> (a -> Bool) -> Gen (Maybe a)

    massiv-test Test.Massiv.Utils

    Tries to generate a value that satisfies a predicate. If it fails to do so after enough attempts, returns Nothing.

  6. mapMaybe :: (a -> Maybe b) -> MonoidalIntMap a -> MonoidalIntMap b

    monoidal-containers Data.IntMap.Monoidal

    No documentation available.

  7. mapMaybeWithKey :: (Int -> a -> Maybe b) -> MonoidalIntMap a -> MonoidalIntMap b

    monoidal-containers Data.IntMap.Monoidal

    No documentation available.

  8. mapMaybe :: (a -> Maybe b) -> MonoidalIntMap a -> MonoidalIntMap b

    monoidal-containers Data.IntMap.Monoidal.Strict

    No documentation available.

  9. mapMaybeWithKey :: (Int -> a -> Maybe b) -> MonoidalIntMap a -> MonoidalIntMap b

    monoidal-containers Data.IntMap.Monoidal.Strict

    No documentation available.

  10. mapMaybe :: forall k a b . (a -> Maybe b) -> MonoidalMap k a -> MonoidalMap k b

    monoidal-containers Data.Map.Monoidal

    No documentation available.

Page 224 of many | Previous | Next