packages feed

hails 0.11.1.3 → 0.11.2.0

raw patch · 3 files changed

+12/−3 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Hails.HttpClient: InvalidProxyEnvironmentVariable :: Text -> Text -> HttpException
- Hails.HttpClient: ResponseLengthAndChunkingBothUsed :: HttpException
+ Hails.Web.Router: instance Applicative RouteM
+ Hails.Web.Router: instance Functor RouteM

Files

Hails/Web/REST.hs view
@@ -96,9 +96,9 @@      routeMethod POST $ routeTop $ restCreate controller -    routeMethod PUT $ restUpdate controller+    routeMethod DELETE $ routeVar "id" $ restDelete controller -    routeMethod DELETE $ restDelete controller+    routeMethod PUT $ routeVar "id" $ restUpdate controller  -- | Monad used to encode a REST controller incrementally. type RESTControllerM a = StateT RESTControllerState DC a
Hails/Web/Router.hs view
@@ -28,6 +28,8 @@   ) where  import           Prelude hiding (pi)+import           Control.Monad+import           Control.Applicative  import           LIO import           LIO.DCLabel@@ -144,6 +146,13 @@       case resA of         Nothing -> rtB pi eq conf req         Just _ -> return resA) valB++instance Functor RouteM where+  fmap f x = pure f <*> x++instance Applicative RouteM where+  pure = return+  (<*>) = ap  instance Monoid Route where   mempty = mroute $ const . const . const . const $ return Nothing
hails.cabal view
@@ -1,5 +1,5 @@ Name:           hails-Version:        0.11.1.3+Version:        0.11.2.0 build-type:     Simple License:        MIT License-File:   LICENSE