packages feed

mig-wai 0.1.0.0 → 0.1.0.1

raw patch · 2 files changed

+7/−6 lines, 2 filesdep ~migPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: mig

API changes (from Hackage documentation)

Files

mig-wai.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:               mig-wai-version:            0.1.0.0+version:            0.1.0.1 synopsis:           Render mig-servers as wai-applications description:        Library to render mig-servers as WAI-applications. category:           Web@@ -43,7 +43,7 @@     , containers     , data-default     , exceptions-    , mig >=0.2+    , mig >=0.2.0.1     , text     , wai   default-language: GHC2021
src/Mig/Server/Wai.hs view
@@ -45,10 +45,11 @@   | -- | no optimization (prefer it for small servers)     PlainFinder --- | Converts mig server to WAI-application.--- Note that only IO-based servers are supported. To use custom monad--- we can use @hoistServer@ function which renders monad to IO based or--- the class @HasServer@ which defines such transformatio for several useful cases.+{-| Converts mig server to WAI-application.+Note that only IO-based servers are supported. To use custom monad+we can use @hoistServer@ function which renders monad to IO based or+the class @HasServer@ which defines such transformatio for several useful cases.+-} toApplication :: ServerConfig -> Server IO -> Wai.Application toApplication config = case config.cache of   Just cacheConfig ->