step-function 0.1.0.2 → 0.1.1.0
raw patch · 4 files changed
+13/−3 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.StepFunction: instance Functor (StepFunction x)
Files
- CHANGELOG.md +3/−1
- dist/build/mergeStub/mergeStub-tmp/mergeStub.hs +5/−0
- src/Data/StepFunction.hs +3/−0
- step-function.cabal +2/−2
CHANGELOG.md view
@@ -3,4 +3,6 @@ # v0.1.0.1 Documentation fixes. # v0.1.0.2-Build with ghc 7.8.4+Build with ghc 7.8.4.+# v0.1.1.0+StepFunction is now an instance of Functor.
+ dist/build/mergeStub/mergeStub-tmp/mergeStub.hs view
@@ -0,0 +1,5 @@+module Main ( main ) where+import Distribution.Simple.Test.LibV09 ( stubMain )+import Merge ( tests )+main :: IO ()+main = stubMain tests
src/Data/StepFunction.hs view
@@ -38,6 +38,9 @@ , transitions :: [Transition x y] -- ^ The transitions. } deriving (Eq,Show) +instance Functor (StepFunction x) where+ fmap f (StepFunction d ts) = StepFunction (f d) (map (fmap f) ts)+ instance (Ord x,Eq y) => Ord (Transition x y) where compare t1 t2 | x_val t1 < x_val t2 = LT | x_val t1 > x_val t2 = GT
step-function.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: step-function-version: 0.1.0.2+version: 0.1.1.0 synopsis: Step functions, staircase functions or piecewise constant functions description: Step functions, staircase functions or piecewise constant functions.@@ -27,7 +27,7 @@ source-repository this type: git location: http://github.com/jonpetterbergman/step-function- tag: v0.1.0.2+ tag: v0.1.1.0 library