warp-static 1.0.0 → 1.1.0
raw patch · 2 files changed
+6/−5 lines, 2 filesdep ~wai-app-staticdep ~wai-extradep ~warp
Dependency ranges changed: wai-app-static, wai-extra, warp
Files
- warp-static.cabal +4/−4
- warp.hs +2/−1
warp-static.cabal view
@@ -1,5 +1,5 @@ Name: warp-static-Version: 1.0.0+Version: 1.1.0 Synopsis: Static file server based on Warp and wai-app-static Homepage: http://github.com/yesodweb/wai License: BSD3@@ -15,9 +15,9 @@ Executable warp Main-is: warp.hs Build-depends: base >= 4 && < 5- , warp >= 1.0 && < 1.1- , wai-app-static >= 1.0 && < 1.1- , wai-extra >= 1.0 && < 1.1+ , warp >= 1.1 && < 1.2+ , wai-app-static >= 1.1 && < 1.2+ , wai-extra >= 1.1 && < 1.2 , cmdargs >= 0.6.7 , directory >= 1.0 , containers >= 0.2 && < 0.5
warp.hs view
@@ -19,6 +19,7 @@ import qualified Data.ByteString.Char8 as S8 import Control.Arrow ((***)) import Data.Text (pack)+import Data.String (fromString) data Args = Args { docroot :: FilePath@@ -47,7 +48,7 @@ . autohead runSettings defaultSettings { settingsPort = port- , settingsHost = host+ , settingsHost = fromString host } $ middle $ staticApp defaultFileServerSettings { ssFolder = fileSystemLookup $ toFilePath docroot , ssIndices = if noindex then [] else map pack index