packages feed

smoothie 0.4.2 → 0.4.2.1

raw patch · 3 files changed

+13/−2 lines, 3 files

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+## 0.4.2.1++- Fixed backward compatibility with aeson-0.10.+ ## 0.4.2  - Support for aeson-0.10.
smoothie.cabal view
@@ -1,5 +1,5 @@ name:                smoothie
-version:             0.4.2
+version:             0.4.2.1
 synopsis:            Smooth curves via several interpolation modes
 description:         This package exports several splines you can use
                      to interpolate points in between. It includes instances for
@@ -29,6 +29,9 @@                      , FlexibleInstances
                      , MultiWayIf
                      , ScopedTypeVariables
+
+  other-extensions:    CPP
+                     , OverloadedStrings
 
   exposed-modules:     Data.Spline
                      , Data.Spline.Curve
src/Data/Spline/Curve.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE CPP, OverloadedStrings #-}  ----------------------------------------------------------------------------- -- |@@ -53,8 +53,12 @@     pure $ \sampler -> spline sampler keys  instance (ToJSON (a s)) => ToJSON (Spline a s) where+#if MIN_VERSION_aeson(0,10,0)   toJSON     = genericToJSON defaultOptions   toEncoding = genericToEncoding defaultOptions+#else+  toJSON = Array . fmap toJSON . splineKeys+#endif  -- |Build a @'Spline' a s@. --