maid 2009.8.16 → 2009.8.18
raw patch · 3 files changed
+13/−5 lines, 3 filesdep +hack-handler-evhttpdep −hack-handler-happstackdep ~hack-contribdep ~lolidep ~mps
Dependencies added: hack-handler-evhttp
Dependencies removed: hack-handler-happstack
Dependency ranges changed: hack-contrib, loli, mps
Files
- changelog.md +8/−0
- maid.cabal +3/−3
- src/maid.hs +2/−2
changelog.md view
@@ -1,3 +1,11 @@+2009.8.18+---------++### Feature++* fix deps+* use evhttp as backend+ 2009.8.16 ---------
maid.cabal view
@@ -1,5 +1,5 @@ Name: maid-Version: 2009.8.16+Version: 2009.8.18 Build-type: Simple Synopsis: A simple static web server Description:@@ -17,7 +17,7 @@ data-files: readme.md, changelog.md, known-issues.md, Nemesis Executable maid- ghc-options: -Wall- build-depends: base >= 4 && < 5, mps, loli, hack-handler-happstack, haskell98, hack-contrib, data-default, hack+ ghc-options: -Wall -threaded+ build-depends: base >= 4 && < 5, mps >= 2009.8.18.1, loli >= 2009.8.18, haskell98, hack-contrib >= 2009.8.18, data-default, hack-handler-evhttp, hack hs-source-dirs: src/ main-is: maid.hs
src/maid.hs view
@@ -2,7 +2,7 @@ {-# LANGUAGE NamedFieldPuns #-} import Network.Loli (loli, public, mime)-import Hack.Handler.Happstack (runWithConfig, port)+import Hack.Handler.EvHTTP import System (getArgs) import MPS.TH (here) import MPS (splash, tuple2, reject, strip, format_time, now, (/), (-))@@ -31,7 +31,7 @@ putStrLn - "\226\157\130 Maid serving on port: " ++ show port putStrLn "" - runWithConfig def {port} - app+ runWithConfig def {cfgPort = port} - app where log_access app = \env -> do