Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. maybeAtom :: Alternative p => p a -> Perms p (Maybe a)

    action-permutations Control.Applicative.Permutation

    Like atom, but the action may be omitted from the permutation.

    When building permutation parsers, the argument parser should not match the empty string.

  2. maybeQuot :: IntegralDomain d => d -> d -> Maybe d

    algebra Numeric.Domain.Integral

    No documentation available.

  3. maybeDelegate :: MonadDelegate r m => r -> m (Maybe a) -> m a

    alternators Control.Monad.Delegate

    maybe delegate the Just value, or just use the r.

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

  5. maybeC :: forall (m :: Type -> Type) i o a . Monad m => ConduitT i o m (Maybe a) -> ConduitT i o (MaybeT m) a

    classy-prelude-yesod ClassyPrelude.Yesod

    Wrap the base monad in MaybeT Since 1.0.11

  6. maybeToList :: Maybe a -> [a]

    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
    

  7. maybeAsSum :: (CoCartesian k, ObjectSum k u a, u ~ UnitObject k, Object k (Maybe a)) => k (Maybe a) (u + a)

    constrained-categories Control.Category.Constrained

    No documentation available.

  8. maybeFromSum :: (CoCartesian k, ObjectSum k u a, u ~ UnitObject k, Object k (Maybe a)) => k (u + a) (Maybe a)

    constrained-categories Control.Category.Constrained

    No documentation available.

  9. maybeAsSum :: (CoCartesian k, ObjectSum k u a, u ~ UnitObject k, Object k (Maybe a)) => k (Maybe a) (u + a)

    constrained-categories Control.Category.Constrained.Prelude

    No documentation available.

  10. maybeFromSum :: (CoCartesian k, ObjectSum k u a, u ~ UnitObject k, Object k (Maybe a)) => k (u + a) (Maybe a)

    constrained-categories Control.Category.Constrained.Prelude

    No documentation available.

Page 58 of many | Previous | Next