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. waitBarrierMaybe :: Barrier a -> IO (Maybe a)

    extra Extra

    A version of waitBarrier that never blocks, returning Nothing if the barrier has not yet been signaled.

  2. whenMaybe :: Applicative m => Bool -> m a -> m (Maybe a)

    extra Extra

    Like when, but return either Nothing if the predicate was False, or Just with the result of the computation.

    whenMaybe True  (print 1) == fmap Just (print 1)
    whenMaybe False (print 1) == pure Nothing
    

  3. whenMaybeM :: Monad m => m Bool -> m a -> m (Maybe a)

    extra Extra

    Like whenMaybe, but where the test can be monadic.

  4. runMaybeApply :: MaybeApply (f :: Type -> Type) a -> Either (f a) a

    semigroupoids Data.Functor.Apply

    No documentation available.

  5. runMaybeApply :: MaybeApply (f :: Type -> Type) a -> Either (f a) a

    semigroupoids Data.Functor.Bind

    No documentation available.

  6. runMaybeApply :: MaybeApply (f :: Type -> Type) a -> Either (f a) a

    semigroupoids Data.Functor.Bind.Class

    No documentation available.

  7. traverse1Maybe :: (Traversable t, Apply f) => (a -> f b) -> t a -> MaybeApply f (t b)

    semigroupoids Data.Functor.Bind.Class

    Traverse a Traversable using Apply, getting the results back in a MaybeApply.

  8. traverse1Maybe :: (Traversable t, Apply f) => (a -> f b) -> t a -> MaybeApply f (t b)

    semigroupoids Data.Semigroup.Traversable

    Traverse a Traversable using Apply, getting the results back in a MaybeApply.

  9. minusNaturalMaybe :: Natural -> Natural -> Maybe Natural

    base-compat Numeric.Natural.Compat

    Natural subtraction. Returns Nothings for non-positive results.

  10. readMaybe :: Read a => String -> Maybe a

    base-compat Text.Read.Compat

    Parse a string using the Read instance. Succeeds if there is exactly one valid result.

    >>> readMaybe "123" :: Maybe Int
    Just 123
    
    >>> readMaybe "hello" :: Maybe Int
    Nothing
    

Page 118 of many | Previous | Next