Deprecated

In favour of

wai-handler-devel

WAI server that automatically reloads code after modification. (deprecated)

http://github.com/yesodweb/wai

Latest on Hackage:2.0.0.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MIT licensed by Michael Snoyman
Maintained by [email protected]

This handler automatically reloads your source code upon any changes. It works by using the hint package, essentially embedding GHC inside the handler. The handler (both the executable and library) takes three arguments: the port to listen on, the module name containing the application function, and the name of the function.

One major note: the type of the application is most likely not what you expect. A common case for WAI applications is having a withApplication function, and this library assumes this is the case. Therefore, the type signature of your application function must be:

withYourApp :: (Application -> IO ()) -> IO ()