5635ef9c57
This is based on servant. It is less hacky and more extensible.
8 lines
169 B
Haskell
8 lines
169 B
Haskell
module Main where
|
|
|
|
import PandocCGI (app)
|
|
import Network.Wai.Handler.CGI (run)
|
|
import Network.Wai.Middleware.Timeout (timeout)
|
|
|
|
main :: IO ()
|
|
main = run $ timeout 2 app
|