From 3583fe2a030e688ff64a461c967e9fc433425e30 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Fri, 11 Feb 2022 05:55:17 +0200 Subject: [PATCH] Update yesod-bin for aeson 2 --- yesod-bin/ChangeLog.md | 4 ++++ yesod-bin/Keter.hs | 6 ++++++ yesod-bin/yesod-bin.cabal | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/yesod-bin/ChangeLog.md b/yesod-bin/ChangeLog.md index a7780c0a..9f05e13d 100644 --- a/yesod-bin/ChangeLog.md +++ b/yesod-bin/ChangeLog.md @@ -1,5 +1,9 @@ # ChangeLog for yesod-bin +## 1.6.2 + +* aeson 2.0 + ## 1.6.1 Added command line options `cert` and `key` to allow TLS certificate and key files to be passed to `yesod devel` [#1717](https://github.com/yesodweb/yesod/pull/1717) diff --git a/yesod-bin/Keter.hs b/yesod-bin/Keter.hs index 07810ea8..94024e18 100644 --- a/yesod-bin/Keter.hs +++ b/yesod-bin/Keter.hs @@ -1,10 +1,16 @@ {-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE CPP #-} module Keter ( keter ) where import Data.Yaml + +#if MIN_VERSION_aeson(2, 0, 0) +import qualified Data.Aeson.KeyMap as Map +#else import qualified Data.HashMap.Strict as Map +#endif import qualified Data.Text as T import System.Environment (getEnvironment) import System.Exit diff --git a/yesod-bin/yesod-bin.cabal b/yesod-bin/yesod-bin.cabal index 20da5ef8..1296d7ff 100644 --- a/yesod-bin/yesod-bin.cabal +++ b/yesod-bin/yesod-bin.cabal @@ -1,5 +1,5 @@ name: yesod-bin -version: 1.6.1 +version: 1.6.2 license: MIT license-file: LICENSE author: Michael Snoyman @@ -61,6 +61,7 @@ executable yesod , warp-tls >= 3.0.1 , yaml >= 0.8 && < 0.12 , zlib >= 0.5 + , aeson ghc-options: -Wall -threaded -rtsopts main-is: main.hs