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.
maybeQuot :: IntegralDomain d => d -> d -> Maybe dalgebra Numeric.Domain.Integral No documentation available.
maybeDelegate :: MonadDelegate r m => r -> m (Maybe a) -> m aalternators Control.Monad.Delegate maybe delegate the Just value, or just use the r.
maybeAuthorized :: Yesod site => Route site -> Bool -> HandlerT site IO (Maybe (Route site))classy-prelude-yesod ClassyPrelude.Yesod Return the same URL if the user is authorized to see it. Built on top of isAuthorized. This is useful for building page that only contain links to pages the user is allowed to see.
-
classy-prelude-yesod ClassyPrelude.Yesod Wrap the base monad in MaybeT Since 1.0.11
-
classy-prelude-yesod ClassyPrelude.Yesod The maybeToList function returns an empty list when given Nothing or a singleton list when given Just.
Examples
Basic usage:>>> maybeToList (Just 7) [7]
>>> maybeToList Nothing []
One can use maybeToList to avoid pattern matching when combined with a function that (safely) works on lists:>>> import GHC.Internal.Text.Read ( readMaybe ) >>> sum $ maybeToList (readMaybe "3") 3 >>> sum $ maybeToList (readMaybe "") 0
-
constrained-categories Control.Category.Constrained No documentation available.
-
constrained-categories Control.Category.Constrained No documentation available.
-
constrained-categories Control.Category.Constrained.Prelude No documentation available.
-
constrained-categories Control.Category.Constrained.Prelude No documentation available.
maybeKey :: String -> Maybe String -> Querycopr-api Web.Fedora.Copr.API Maybe create a query key