Hoogle Search

Within LTS Haskell 24.16 (ghc-9.10.3)

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

  1. ok :: FilterMonad Response m => a -> m a

    happstack-server Happstack.Server.Response

    Respond with 200 OK.

    main = simpleHTTP nullConf $ ok "Everything is OK"
    

  2. noContent :: FilterMonad Response m => a -> m a

    happstack-server Happstack.Server.Response

    Respond with 204 No Content A 204 No Content response may not contain a message-body. If you try to supply one, it will be dutifully ignored.

    main = simpleHTTP nullConf $ noContent "This will be ignored."
    

  3. internalServerError :: FilterMonad Response m => a -> m a

    happstack-server Happstack.Server.Response

    Respond with 500 Internal Server Error.

    main = simpleHTTP nullConf $ internalServerError "Sorry, there was an internal server error."
    

  4. badGateway :: FilterMonad Response m => a -> m a

    happstack-server Happstack.Server.Response

    Responds with 502 Bad Gateway.

    main = simpleHTTP nullConf $ badGateway "Bad Gateway."
    

  5. badRequest :: FilterMonad Response m => a -> m a

    happstack-server Happstack.Server.Response

    Respond with 400 Bad Request.

    main = simpleHTTP nullConf $ badRequest "Bad Request."
    

  6. unauthorized :: FilterMonad Response m => a -> m a

    happstack-server Happstack.Server.Response

    Respond with 401 Unauthorized.

    main = simpleHTTP nullConf $ unauthorized "You are not authorized."
    

  7. forbidden :: FilterMonad Response m => a -> m a

    happstack-server Happstack.Server.Response

    Respond with 403 Forbidden.

    main = simpleHTTP nullConf $ forbidden "Sorry, it is forbidden."
    

  8. notFound :: FilterMonad Response m => a -> m a

    happstack-server Happstack.Server.Response

    Respond with 404 Not Found.

    main = simpleHTTP nullConf $ notFound "What you are looking for has not been found."
    

  9. requestEntityTooLarge :: FilterMonad Response m => a -> m a

    happstack-server Happstack.Server.Response

    Respond with 413 Request Entity Too Large.

    main = simpleHTTP nullConf $ requestEntityTooLarge "That's too big for me to handle."
    

  10. pure :: Applicative f => a -> f a

    base Prelude

    Lift a value into the Structure.

    Examples

    >>> pure 1 :: Maybe Int
    Just 1
    
    >>> pure 'z' :: [Char]
    "z"
    
    >>> pure (pure ":D") :: Maybe [String]
    Just [":D"]
    

Page 7 of many | Previous | Next