packages feed

apiary 2.1.1 → 2.1.2

raw patch · 5 files changed

+7/−3 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,6 @@+# 2.1.2+* Fix GHC 8.0.2 build.+ # 2.1.1 * Bump aeson and time version in dependencies. 
apiary.cabal view
@@ -1,5 +1,5 @@ name:                apiary-version:             2.1.1+version:             2.1.2 synopsis:            Simple and type safe web framework that generate web API documentation. description:   Simple and type safe web framework that can be automatically generate API documentation.
src/Control/Monad/Apiary/Internal.hs view
@@ -207,7 +207,9 @@ instance Monad actM => MonadTransControl (ApiaryT exts prms actM) where #if MIN_VERSION_monad_control(1,0,0)     type StT (ApiaryT exts prms actM) a = (a, ApiaryWriter exts actM)-    liftWith f = apiaryT $ \env -> liftM (\a -> (a, mempty)) (f $ \t -> unApiaryT t env (\a w -> return (a,w)))+    liftWith f = apiaryT $ \env ->+        liftM (\a -> (a, mempty :: ApiaryWriter exts actM)) -- GHC 8.0.1 can't figure it out+        (f $ \t -> unApiaryT t env (\a w -> return (a,w)))     restoreT = apiaryT . const #else     newtype StT (ApiaryT exts prms actM) a = StTApiary { unStTApiary :: (a, ApiaryWriter exts actM) }
static/api-documentation.min.css view
@@ -1,1 +0,0 @@-.fetch{text-decoration:underline}.type .rest{color:gray}footer{padding-top:30px;padding-bottom:50px;margin-top:20px;text-align:center;color:#777;border-top:1px solid #e5e5e5}.description{margin-bottom:20px}table{margin-top:15px !important;margin-bottom:0 !important}table.route-parameters{margin-top:0 !important;border-bottom:1px solid #ddd;background-color:#f5f5f5}.method{margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid #ddd}.method:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}.methods div{margin-left:10px;color:#999}.panel-heading,h1{cursor:pointer}.precondition{margin-bottom:10px}.action{margin-bottom:20px}.action:last-child{margin-bottom:0}.no-description{color:#aaa}.test-method{margin-right:10px;font-weight:bold}.request-test{margin-bottom:20px}.route-string{color:#aaa}.request-result pre{all:unset}.close-btn{font-size:20px;font-weight:700px;opacity:.2;cursor:pointer;position:relative;top:-6px}.close-btn:hover{opacity:1}.bs-callout{padding:20px;margin:20px 0;border:1px solid #eee;border-left-width:5px;border-radius:3px}.bs-callout h4{margin-top:0;margin-bottom:5px}.bs-callout p:last-child{margin-bottom:0}.bs-callout code{border-radius:3px}.bs-callout+.bs-callout{margin-top:-5px}.bs-callout-default{border-left-color:#777}.bs-callout-default h4{color:#777}.bs-callout-primary{border-left-color:#428bca}.bs-callout-primary h4{color:#428bca}.bs-callout-success{border-left-color:#5cb85c}.bs-callout-success h4{color:#5cb85c}.bs-callout-danger{border-left-color:#d9534f}.bs-callout-danger h4{color:#d9534f}.bs-callout-warning{border-left-color:#f0ad4e}.bs-callout-warning h4{color:#f0ad4e}.bs-callout-info{border-left-color:#5bc0de}.bs-callout-info h4{color:#5bc0de}
static/api-documentation.min.js view