packages feed

crackNum 1.8 → 1.9

raw patch · 4 files changed

+10/−6 lines, 4 filesdep ~basedep ~data-binary-ieee754PVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, data-binary-ieee754

API changes (from Hackage documentation)

Files

CHANGES.md view
@@ -1,7 +1,11 @@ * Hackage: <http://hackage.haskell.org/package/crackNum> * GitHub:  <http://github.com/LeventErkok/crackNum/> -* Latest Hackage released version: 1.8, 2017-01-15+* Latest Hackage released version: 1.9, 2017-01-22++### Version 1.9, 2017-01-22++  * Minor fix to printing of +/-0  ### Version 1.8, 2017-01-15 
Data/Numbers/CrackNum.hs view
@@ -118,8 +118,8 @@         dup x = (x, x)          (val, hexVal) = case kind of-                          Zero    False   -> dup "+0"-                          Zero    True    -> dup "-0"+                          Zero    False   -> ("+0.0", "0x0p+0")+                          Zero    True    -> ("-0.0", "-0x0p+0")                           Infty   False   -> dup "+Infinity"                           Infty   True    -> dup "-Infinity"                           SNaN            -> dup "NaN (Signaling)"@@ -205,7 +205,7 @@                        (Nothing,     _,      Just d) -> (Nothing,            Just (doubleToFP d))                        _                             -> (Nothing,            Nothing) -        rd :: (Read a, FloatingHexReader a, RealFloat a) => String -> Maybe a+        rd :: (Read a, FloatingHexReader a) => String -> Maybe a         rd s = case [v | (v, "") <- reads s] ++ catMaybes [readHFloat s] of                  [v] -> Just v                  _   -> Nothing
README.md view
@@ -5,7 +5,7 @@  ### Command line options: -    crackNum v1.8, (c) Levent Erkok. Released with a BSD3 license.+    crackNum v1.9, (c) Levent Erkok. Released with a BSD3 license.     Usage: crackNum precision bit/hex-pattern               --hp        16 bit half     precision               --sp        32 bit single   precision
crackNum.cabal view
@@ -1,5 +1,5 @@ Name:                crackNum-Version:             1.8+Version:             1.9 Synopsis:            Crack various integer, floating-point data formats Description:         Crack HP, SP and DP floats and 8, 16, 32, 64 bit words and integers.                      .