Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
evalMaybe :: (MonadTest m, HasCallStack) => Maybe a -> m ahedgehog Hedgehog.Internal.Property Fails the test if the Maybe is Nothing, otherwise returns the value in the Just.
evalMaybeM :: (MonadTest m, MonadCatch m, HasCallStack) => m (Maybe a) -> m ahedgehog Hedgehog.Internal.Property Fails the test if the action throws an exception, or if the Maybe is Nothing, otherwise returns the value in the Just.
catMaybes :: Tree (Maybe a) -> Maybe (Tree a)hedgehog Hedgehog.Internal.Tree Takes a tree of Maybes and returns a tree of all the Just values. If the root of the tree is Nothing then Nothing is returned.
filterMaybeT :: (a -> Bool) -> TreeT (MaybeT Identity) a -> TreeT (MaybeT Identity) ahedgehog Hedgehog.Internal.Tree Returns a tree containing only elements that match the predicate. If the root of the tree does not match the predicate then Nothing is returned.
mapMaybe :: (a -> Maybe b) -> Tree a -> Maybe (Tree b)hedgehog Hedgehog.Internal.Tree No documentation available.
mapMaybeMaybeT :: (a -> Maybe b) -> TreeT (MaybeT Identity) a -> TreeT (MaybeT Identity) bhedgehog Hedgehog.Internal.Tree No documentation available.
-
hedgehog Hedgehog.Internal.Tree No documentation available.
parseMaybe :: (Ord e, Stream s) => Parsec e s a -> s -> Maybe amegaparsec Text.Megaparsec parseMaybe p input runs the parser p on input and returns the result inside Just on success and Nothing on failure. This function also parses eof, so if the parser doesn't consume all of its input, it will fail. The function is supposed to be useful for lightweight parsing, where error messages (and thus file names) are not important and entire input should be consumed. For example, it can be used for parsing of a single number according to a specification of its format.
waitBarrierMaybe :: Barrier a -> IO (Maybe a)extra Control.Concurrent.Extra A version of waitBarrier that never blocks, returning Nothing if the barrier has not yet been signaled.
fromMaybeM :: Monad m => m a -> m (Maybe a) -> m aextra Control.Monad.Extra Monadic generalisation of fromMaybe.