serverless-haskell 0.10.0 → 0.10.1
raw patch · 3 files changed
+5/−7 lines, 3 filesdep −aeson-extra
Dependencies removed: aeson-extra
Files
- README.md +1/−1
- serverless-haskell.cabal +2/−4
- src/Data/Aeson/Embedded.hs +2/−2
README.md view
@@ -50,7 +50,7 @@ stack new mypackage ``` - LTS 9-14 are supported, older versions are likely to work too but untested.+ LTS 9-15 are supported, older versions are likely to work too but untested. * Initialise a Serverless project inside the Stack package directory and install the `serverless-haskell` plugin:
serverless-haskell.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: a98a36c8e69422845bcf7370c281cb9b0bbaac07f75b4e660c170bc782ced20c+-- hash: ba4b82190088e8173126156c2c1bae87076a945cef2b26dbe767056b28b85053 name: serverless-haskell-version: 0.10.0+version: 0.10.1 synopsis: Deploying Haskell code onto AWS Lambda using Serverless description: Utilities to help process the events from AWS Lambda when deployed with the serverless-haskell plugin. category: AWS, Cloud, Network@@ -48,7 +48,6 @@ build-depends: aeson , aeson-casing- , aeson-extra , amazonka-core , amazonka-kinesis , amazonka-s3@@ -85,7 +84,6 @@ build-depends: aeson , aeson-casing- , aeson-extra , amazonka-core , amazonka-kinesis , amazonka-s3
src/Data/Aeson/Embedded.hs view
@@ -11,7 +11,7 @@ import Control.Lens.TH import Data.Aeson-import Data.Aeson.Extra (encodeStrict)+import qualified Data.ByteString.Lazy as LBS import Data.Text.Encoding (decodeUtf8, encodeUtf8) import Network.AWS.Data.Text (FromText (..), ToText (..), fromText, takeText)@@ -29,7 +29,7 @@ parseJSON v = either fail pure . fromText =<< parseJSON v instance ToJSON a => ToText (Embedded a) where- toText = decodeUtf8 . encodeStrict . _unEmbed+ toText = decodeUtf8 . LBS.toStrict . encode . _unEmbed instance ToJSON a => ToJSON (Embedded a) where toJSON = toJSON . toText