Hoogle Search

Within LTS Haskell 24.67 (ghc-9.10.3)

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

  1. type family Sequence_Sym1 (a6989586621680407148 :: t m a) :: m ()

    singletons-base Prelude.Singletons

    No documentation available.

  2. sSeq :: forall a b (t1 :: a) (t2 :: b) . Sing t1 -> Sing t2 -> Sing (Apply (Apply (SeqSym0 :: TyFun a (b ~> b) -> Type) t1) t2)

    singletons-base Prelude.Singletons

    No documentation available.

  3. sSequence :: forall (m :: Type -> Type) a (t1 :: t (m a)) . (STraversable t, SMonad m) => Sing t1 -> Sing (Apply (SequenceSym0 :: TyFun (t (m a)) (m (t a)) -> Type) t1)

    singletons-base Prelude.Singletons

    No documentation available.

  4. sSequenceA :: forall (f :: Type -> Type) a (t1 :: t (f a)) . (STraversable t, SApplicative f) => Sing t1 -> Sing (Apply (SequenceASym0 :: TyFun (t (f a)) (f (t a)) -> Type) t1)

    singletons-base Prelude.Singletons

    No documentation available.

  5. sSequence_ :: forall (t1 :: Type -> Type) (m :: Type -> Type) a (t2 :: t1 (m a)) . (SFoldable t1, SMonad m) => Sing t2 -> Sing (Apply (Sequence_Sym0 :: TyFun (t1 (m a)) (m ()) -> Type) t2)

    singletons-base Prelude.Singletons

    No documentation available.

  6. data Request

    snap-core Snap.Core

    Contains all of the information about an incoming HTTP request.

  7. getRequest :: MonadSnap m => m Request

    snap-core Snap.Core

    Grabs the Request object out of the Snap monad. Example:

    ghci> :set -XOverloadedStrings
    ghci> import qualified Data.Map as M
    ghci> import qualified Snap.Test as T
    ghci> let r = T.get "/foo/bar" M.empty
    ghci> T.runHandler r (writeBS . rqURI =<< getRequest)
    HTTP/1.1 200 OK
    server: Snap/test
    date: Sat, 02 Aug 2014 07:51:54 GMT
    
    /foo/bar
    

  8. getsRequest :: MonadSnap m => (Request -> a) -> m a

    snap-core Snap.Core

    Grabs something out of the Request object, using the given projection function. See gets. Example:

    ghci> :set -XOverloadedStrings
    ghci> import qualified Data.Map as M
    ghci> import qualified Snap.Test as T
    ghci> let r = T.get "/foo/bar" M.empty
    ghci> T.runHandler r (writeBS =<< getsRequest rqURI)
    HTTP/1.1 200 OK
    server: Snap/test
    date: Sat, 02 Aug 2014 07:51:54 GMT
    
    /foo/bar
    

  9. localRequest :: MonadSnap m => (Request -> Request) -> m a -> m a

    snap-core Snap.Core

    Runs a Snap action with a locally-modified Request state object. The Request object in the Snap monad state after the call to localRequest will be unchanged. Example:

    ghci> :set -XOverloadedStrings
    ghci> import qualified Data.Map as M
    ghci> import qualified Snap.Test as T
    ghci> let r = T.get "/foo/bar" M.empty
    ghci> r' <- T.buildRequest $ T.get "/bar/foo" M.empty
    ghci> let printRqURI = getsRequest rqURI >>= writeBS >> writeBS "\n"
    ghci> T.runHandler r (printRqURI >> localRequest (const r') printRqURI)
    HTTP/1.1 200 OK
    server: Snap/test
    date: Wed, 06 Aug 2014 15:34:12 GMT
    
    /foo/bar
    /bar/foo
    

  10. modifyRequest :: MonadSnap m => (Request -> Request) -> m ()

    snap-core Snap.Core

    Modifies the Request object stored in a Snap monad. Example:

    ghci> :set -XOverloadedStrings
    ghci> import qualified Data.Map as M
    ghci> import qualified Snap.Test as T
    ghci> let r = T.get "/foo/bar" M.empty
    ghci> r' <- T.buildRequest $ T.get "/bar/foo" M.empty
    ghci> T.runHandler r (modifyRequest (const r') >> getsRequest rqURI >>= writeBS)
    HTTP/1.1 200 OK
    server: Snap/test
    date: Wed, 06 Aug 2014 15:24:25 GMT
    
    /bar/foo
    

Page 322 of many | Previous | Next