packages feed

wai-app-static 3.1.6.2 → 3.1.6.3

raw patch · 3 files changed

+13/−2 lines, 3 filesdep ~basedep ~warpPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, warp

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,3 +1,9 @@+## 3.1.6.3++* The executable warp obeys `-h` option properly for host+now. Previously this used to invoke the help option. That can be+reached via `--help` as before.+ ## 3.1.6.2  * Drop dependency on blaze-builder
WaiAppStatic/CmdLine.hs view
@@ -93,7 +93,7 @@ -- Since 2.0.1 runCommandLine :: (Args -> Middleware) -> IO () runCommandLine middleware = do-    args@Args {..} <- execParser $ info (helper <*> args) fullDesc+    args@Args {..} <- execParser $ info (helperOption <*> args) fullDesc     let mime' = map (pack *** S8.pack) mime     let mimeMap = Map.fromList mime' `Map.union` defaultMimeMap     docroot' <- canonicalizePath docroot@@ -110,3 +110,8 @@         { ssIndices = if noindex then [] else mapMaybe (toPiece . pack) index         , ssGetMimeType = return . mimeByExt mimeMap defaultMimeType . fromPiece . fileName         }+    where+      helperOption :: Parser (a -> a)+      helperOption =+        abortOption ShowHelpText $+        mconcat [long "help", help "Show this help text", hidden]
wai-app-static.cabal view
@@ -1,5 +1,5 @@ name:            wai-app-static-version:         3.1.6.2+version:         3.1.6.3 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>