Webanwendung mit FastCGI und Haskell
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
425B

  1. module App.Error (
  2. PageNotFound(..)
  3. ) where
  4. import Network.FastCGI
  5. import Network.URI
  6. import Template
  7. import Request
  8. data PageNotFound = PageNotFound
  9. instance RequestHandler PageNotFound where
  10. handle handler = do
  11. uri <- requestURI
  12. let path = uriPath uri
  13. res <- render "error404" [ ("pagetitle", "Seite nicht gefunden")
  14. , ("path", path)]
  15. output res