hw-aeson 0.1.3.0 → 0.1.4.0
raw patch · 2 files changed
+9/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
hw-aeson.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.2 name: hw-aeson-version: 0.1.3.0+version: 0.1.4.0 synopsis: Convenience functions for Aeson description: Convenience functions for Aeson. category: Data, JSON
src/HaskellWorks/Data/Aeson/Compat/Map.hs view
@@ -4,8 +4,16 @@ ( module JM ) where +import Data.Text (Text)+ #if MIN_VERSION_aeson(2,0,0) import Data.Aeson.KeyMap as JM #else import Data.HashMap.Strict as JM+#endif++#if MIN_VERSION_aeson(2,0,0)+type Map v = JM.KeyMap v+#else+type Map v = JM.HashMap Text v #endif