wai-control 0.1.0.0 → 0.1.0.1
raw patch · 4 files changed
+21/−12 lines, 4 filesdep ~monad-control-identityPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: monad-control-identity
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- src/Network/Wai/Handler/WebSockets/Trans.hs +5/−4
- src/Network/Wai/Trans.hs +2/−2
- wai-control.cabal +9/−6
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for wai-control +## 0.1.0.1 -- 2020-07-17++* Specify versions of dependencies more accurately.+* Improve documentation.+ ## 0.1.0.0 -- 2020-07-17 * First version. Released on an unsuspecting world.
src/Network/Wai/Handler/WebSockets/Trans.hs view
@@ -24,7 +24,7 @@ import Network.Wai.Trans --- | A type synonym for a websockets 'ServerApp' which has been lifted from the IO monad.+-- | A type synonym for a websockets 'ServerApp' which has been lifted from the 'IO' monad. type ServerAppT m = PendingConnection -> m () -- | Lift a websockets 'ServerApp' to a 'ServerAppT'.@@ -40,7 +40,7 @@ runServerAppT serverAppT = liftBaseWithIdentity $ \ runInBase -> return $ runInBase . serverAppT --- | A type synonym for a websockets 'ClientApp' which has been lifted from the IO monad.+-- | A type synonym for a websockets 'ClientApp' which has been lifted from the 'IO' monad. type ClientAppT m a = Connection -> m a -- | Lift a websockets 'ClientApp' to a 'ClientAppT'.@@ -56,8 +56,9 @@ runClientAppT clientAppT = liftBaseWithIdentity $ \ runInBase -> return $ runInBase . clientAppT --- | Upgrade a 'ServerAppT' to a 'MiddlewareT'.--- This function is based on 'websocketsOr'.+{- | Upgrade a 'ServerAppT' to a 'MiddlewareT'.+ This function is based on 'websocketsOr'.+-} websocketsOrT :: MonadBaseControlIdentity IO m => ConnectionOptions -> ServerAppT m
src/Network/Wai/Trans.hs view
@@ -38,7 +38,7 @@ -- | A type synonym for a wai 'Middleware' which has been lifted from the 'IO' monad. type MiddlewareT m = ApplicationT m -> ApplicationT m --- | Lift a wai 'Middleware to an 'MiddlewareT'.+-- | Lift a wai 'Middleware' to a 'MiddlewareT'. liftMiddleware :: MonadBaseControlIdentity IO m => Middleware -> MiddlewareT m@@ -46,7 +46,7 @@ app <- runApplicationT appT liftBaseWithIdentity $ \ runInBase -> mid app request $ runInBase . respond --- | Run an 'MiddlewareT' in the inner monad.+-- | Run a 'MiddlewareT' in the inner monad. runMiddlewareT :: MonadBaseControlIdentity IO m => MiddlewareT m -> m Middleware
wai-control.cabal view
@@ -1,16 +1,19 @@ name: wai-control-version: 0.1.0.0+version: 0.1.0.1 synopsis: Give wai Applications an IO-based inner monad description: This package allows IO-based monads in covariant and contravariant positions of wai Applications.+ . The monads, which are applicable for this, need to have MonadBaseControl IO- instances. This are for most cases ReaderT stacks based on the IO monad.+ instances.+ This are for most cases ReaderT stacks based on the IO monad. This package will especially be of interest, if you are sharing access to MVars, TVars or other concurrent data, while controlling that access with monad transformers.-- This package is based on wai-transformers by Athan Clark:- https://github.com/athanclark/wai-transformers+ .+ This package is based on+ <https://github.com/athanclark/wai-transformers wai-transformers> by Athan+ Clark. license: BSD3 license-file: LICENSE author: Felix Springer@@ -26,8 +29,8 @@ exposed-modules: Network.Wai.Trans Network.Wai.Handler.WebSockets.Trans build-depends: base >= 4.5 && < 5+ , monad-control-identity >= 0.1.0.1 && < 0.2 , transformers-base >= 0.4.5.2 && < 0.5- , monad-control-identity >= 0.1.0.1 && < 1.1 , wai >= 3.2 && < 3.3 , wai-websockets >= 3.0.1.2 && < 3.1 , websockets >= 0.12.5.3 && < 0.13