No description, website, or topics provided.
Haskell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE
Nemesis
Setup.lhs
changelog.md
hack-handler-hyena.cabal
known-issues.md
readme.md

readme.md

Importent!

Only use it as a development backend, there are known unfixed bugs in the handler. e.g. The process could go wild when connection is closed uncleanly, e.g. by using kill.

Note

You must set content-length in response explicitly, e.g. use the content_length middleware, otherwise, request might choke.

import Hack.Handler.Hyena
import Hack.Contrib.Middleware.ContentLength
import Hack.Frontend.Happstack
import Network.Gitit

main = do
  conf <- getDefaultConfig
  createStaticIfMissing conf
  createTemplateIfMissing conf
  createRepoIfMissing conf
  initializeGititState conf

  run . content_length $ serverPartToApp (wiki conf)