packages feed

servant-errors 0.1.4.0 → 0.1.5.0

raw patch · 3 files changed

+11/−5 lines, 3 filesdep +base-compatdep ~basePVP ok

version bump matches the API change (PVP)

Dependencies added: base-compat

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -33,3 +33,7 @@ ## 0.1.3.1  * export encoding helper functions++## 0.1.5.0++* add GHC 8.8 support
servant-errors.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.2 name:                servant-errors-version:             0.1.4.0+version:             0.1.5.0 synopsis:            Servant Errors wai-middlware description:         A Wai middleware that uniformly structures errors with in a servant application. The library assumes all HTTP responses with status code greater than 200 and without an HTTP content type are error responses. This assumption is derived from servant server error handling implementation. @@ -15,9 +15,9 @@ build-type:          Simple extra-doc-files:     README.md                    , CHANGELOG.md-tested-with:         GHC == 8.2.2-                   , GHC == 8.4.4+tested-with:         GHC == 8.4.4                    , GHC == 8.6.5+                   , GHC == 8.8.3   source-repository head@@ -25,7 +25,8 @@   location:            https://github.com/epicallan/servant-errors.git  common common-options-  build-depends:       base  >= 4.10.0.0 && < 4.13+  build-depends:       base  >= 4.10.0.0 && < 4.15+                     , base-compat >= 0.9.0                      , aeson >= 1.3                      , text  >= 1.2                      , wai   >= 3.2
src/Network/Wai/Middleware/Servant/Errors.hs view
@@ -35,6 +35,7 @@ {-# LANGUAGE FlexibleInstances     #-} {-# LANGUAGE KindSignatures        #-} {-# LANGUAGE MultiParamTypeClasses #-}+{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE RankNTypes            #-} {-# LANGUAGE RecordWildCards       #-} {-# LANGUAGE ScopedTypeVariables   #-}@@ -56,6 +57,7 @@   , encodeAsPlainText   )where +import Prelude.Compat import Data.Aeson (Value (..), encode) import qualified Data.ByteString as B import Data.ByteString.Builder (toLazyByteString)@@ -64,7 +66,6 @@ import Data.IORef (modifyIORef', newIORef, readIORef) import Data.Kind (Type) import Data.List (find)-import Data.Monoid ((<>)) import Data.Proxy (Proxy (..)) import Data.Scientific (Scientific) import Data.String.Conversions (cs)