packages feed

web-routes 0.24.1 → 0.25.1

raw patch · 2 files changed

+7/−4 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Web.Routes.RouteT: runRouteT :: RouteT url m a -> (url -> [(String, String)] -> Link) -> m a
+ Web.Routes.RouteT: runRouteT :: (url -> RouteT url m a) -> ((url -> [(String, String)] -> String) -> url -> m a)

Files

Web/Routes/RouteT.hs view
@@ -31,10 +31,13 @@  -- |monad transformer for generating URLs newtype RouteT url m a = RouteT { unRouteT :: (url -> [(String, String)] -> Link) -> m a }---     deriving (Functor, Monad, MonadFix, MonadPlus) -- , MonadIO, MonadTrans, MonadReader (url -> Link)) -runRouteT :: RouteT url m a -> (url -> [(String, String)] -> Link) -> m a-runRouteT = unRouteT+-- | convert a 'RouteT' based route handler to a handler that can be used with the 'Site' type+--+-- NOTE: this function used to be the same as 'unRouteT'. If you want the old behavior, just call 'unRouteT'.+runRouteT :: (url -> RouteT url m a) +          -> ((url -> [(String, String)] -> String) -> url -> m a)+runRouteT r = \f u -> (unRouteT (r u)) f  -- | Transform the computation inside a @RouteT@. mapRouteT :: (m a -> n b) -> RouteT url m a -> RouteT url n b
web-routes.cabal view
@@ -1,5 +1,5 @@ Name:             web-routes-Version:          0.24.1+Version:          0.25.1 License:          BSD3 License-File:     LICENSE Author:           jeremy@seereason.com