notzero 0.0.6 → 0.0.7
raw patch · 3 files changed
+7/−3 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.NotZero: notZeroElse :: (Eq a, Num a) => a -> a -> NotZero a
+ Data.NotZero: notZeroElse :: (Eq a, Num a) => NotZero a -> a -> NotZero a
Files
- changelog +4/−0
- notzero.cabal +1/−1
- src/Data/NotZero.hs +2/−2
changelog view
@@ -1,3 +1,7 @@+0.0.7++* Fix invariant break in `notZeroElse`.+ 0.0.6 * Fix bug in `notZeroElse`.
notzero.cabal view
@@ -1,5 +1,5 @@ name: notzero-version: 0.0.6+version: 0.0.7 license: BSD3 license-file: LICENSE author: Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> <dibblego>
src/Data/NotZero.hs view
@@ -35,11 +35,11 @@ notZeroElse :: (Eq a, Num a) =>- a+ NotZero a -> a -> NotZero a notZeroElse d a =- NotZero (bool a d (a == 0))+ bool (NotZero a) d (a == 0) notZero1 :: (Eq a, Num a) =>