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.

  1. maybeToExceptT :: forall (m :: Type -> Type) e a . Functor m => e -> MaybeT m a -> ExceptT e m a

    rebase Rebase.Prelude

    Convert a MaybeT computation to ExceptT, with a default exception value.

  2. maybeToLeft :: b -> Maybe a -> Either a b

    rebase Rebase.Prelude

    Maybe produce a Left, otherwise produce a Right.

    >>> maybeToLeft "default" (Just 12)
    Left 12
    
    >>> maybeToLeft "default" Nothing
    Right "default"
    

  3. maybeToRight :: b -> Maybe a -> Either b a

    rebase Rebase.Prelude

    Maybe produce a Right, otherwise produce a Left.

    >>> maybeToRight "default" (Just 12)
    Right 12
    
    >>> maybeToRight "default" Nothing
    Left "default"
    

  4. maybeAccumulateRangeFromPyramid :: Transform sig v => (v -> v -> v) -> [sig v] -> (Int, Int) -> Maybe v

    synthesizer-core Synthesizer.Generic.Filter.NonRecursive

    No documentation available.

  5. maybeM :: Monad m => b -> (a -> m b) -> Maybe a -> m b

    Chart Graphics.Rendering.Chart.Utils

    Version of maybe that returns a monadic value.

  6. maybeToExceptS :: forall (m :: Type -> Type) a b . (Functor m, Monad m) => Automaton (MaybeT m) a b -> Automaton (ExceptT () m) a b

    automaton Data.Automaton.Trans.Except

    Converts an Automaton in MaybeT to an Automaton in ExceptT. Whenever Nothing is thrown, throw () instead.

  7. maybeExit :: forall (m :: Type -> Type) a . Monad m => Automaton (MaybeT m) (Maybe a) a

    automaton Data.Automaton.Trans.Maybe

    Just a is passed along, Nothing causes the whole Automaton to exit.

  8. maybeToExceptS :: forall (m :: Type -> Type) a b . (Functor m, Monad m) => Automaton (MaybeT m) a b -> Automaton (ExceptT () m) a b

    automaton Data.Automaton.Trans.Maybe

    Converts an Automaton in MaybeT to an Automaton in ExceptT. Whenever Nothing is thrown, throw () instead.

  9. maybeToExceptT :: forall (m :: Type -> Type) e a . Functor m => e -> MaybeT m a -> ExceptT e m a

    automaton Data.Automaton.Trans.Maybe

    Convert a MaybeT computation to ExceptT, with a default exception value.

  10. maybeOption :: forall s (m :: Type -> Type) u a . Stream s m Char => ParsecT s u m a -> ParsecT s u m (Maybe a)

    hsemail Text.Parsec.Rfc2822

    Return Nothing if the given parser doesn't match. This combinator is included in the latest parsec distribution as optionMaybe, but ghc-6.6.1 apparently doesn't have it.

Page 50 of many | Previous | Next