Hoogle Search

Within LTS Haskell 24.45 (ghc-9.10.3)

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

  1. optionMaybe :: forall s (m :: Type -> Type) t u a . Stream s m t => ParsecT s u m a -> ParsecT s u m (Maybe a)

    pandoc Text.Pandoc.Parsing

    optionMaybe p tries to apply parser p. If p fails without consuming input, it return Nothing, otherwise it returns Just the value returned by p.

  2. runNonDetMaybe :: forall (r :: [(Type -> Type) -> Type -> Type]) a . Sem (NonDet ': r) a -> Sem r (Maybe a)

    polysemy Polysemy.NonDet

    Run a NonDet effect in terms of an underlying Maybe Unlike runNonDet, uses of <|> will not execute the second branch at all if the first option succeeds.

  3. getContextMaybe :: forall context m (l :: Symbol) a . (MonadReader context m, KnownSymbol l, Typeable context, Typeable a) => Label l a -> m (Maybe a)

    sandwich Test.Sandwich.Contexts

    Try to get a context by its label. If not is in scope, returns Nothing.

  4. captureParamMaybe :: Parsable a => Text -> ActionM (Maybe a)

    scotty Web.Scotty

    Synonym for pathParamMaybe Since: 0.21

  5. formParamMaybe :: Parsable a => Text -> ActionM (Maybe a)

    scotty Web.Scotty

    Look up a form parameter. Returns Nothing if the parameter is not found or cannot be parsed at the right type. NB : Doesn't throw exceptions, so developers must raiseStatus or throw to signal something went wrong. Since: 0.21

  6. pathParamMaybe :: Parsable a => Text -> ActionM (Maybe a)

    scotty Web.Scotty

    Look up a path parameter. Returns Nothing if the parameter is not found or cannot be parsed at the right type. NB : Doesn't throw exceptions. In particular, route pattern matching will not continue, so developers must raiseStatus or throw to signal something went wrong. Since: 0.21

  7. queryParamMaybe :: Parsable a => Text -> ActionM (Maybe a)

    scotty Web.Scotty

    Look up a query parameter. Returns Nothing if the parameter is not found or cannot be parsed at the right type. NB : Doesn't throw exceptions, so developers must raiseStatus or throw to signal something went wrong. Since: 0.21

  8. captureParamMaybe :: forall a (m :: Type -> Type) . (Parsable a, Monad m) => Text -> ActionT m (Maybe a)

    scotty Web.Scotty.Trans

    Look up a capture parameter. Returns Nothing if the parameter is not found or cannot be parsed at the right type. NB : Doesn't throw exceptions. In particular, route pattern matching will not continue, so developers must raiseStatus or throw to signal something went wrong. Since: 0.21

  9. formParamMaybe :: forall (m :: Type -> Type) a . (MonadUnliftIO m, Parsable a) => Text -> ActionT m (Maybe a)

    scotty Web.Scotty.Trans

    Look up a form parameter. Returns Nothing if the parameter is not found or cannot be parsed at the right type. NB : Doesn't throw exceptions, so developers must raiseStatus or throw to signal something went wrong. Since: 0.21

  10. pathParamMaybe :: forall a (m :: Type -> Type) . (Parsable a, Monad m) => Text -> ActionT m (Maybe a)

    scotty Web.Scotty.Trans

    Look up a path parameter. Returns Nothing if the parameter is not found or cannot be parsed at the right type. NB : Doesn't throw exceptions. In particular, route pattern matching will not continue, so developers must raiseStatus or throw to signal something went wrong. Since: 0.21

Page 178 of many | Previous | Next