crackNum 2.3 → 2.4
raw patch · 3 files changed
+11/−7 lines, 3 filesdep ~FloatingHexdep ~arraydep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: FloatingHex, array, base
API changes (from Hackage documentation)
Files
- CHANGES.md +4/−1
- Data/Numbers/CrackNum/Main.hs +3/−4
- crackNum.cabal +4/−2
CHANGES.md view
@@ -1,7 +1,10 @@ * Hackage: <http://hackage.haskell.org/package/crackNum> * GitHub: <http://github.com/LeventErkok/crackNum/> -* Latest Hackage released version: 2.3, 2018-11-17+* Latest Hackage released version: 2.3, 2020-09-05++### Version 2.4, 2020-09-05+ * Changes required to compile cleanly with GHC 8.10.2 ### Version 2.3, 2018-11-17
Data/Numbers/CrackNum/Main.hs view
@@ -9,7 +9,6 @@ -- Main entry point for the crackNum executable ----------------------------------------------------------------------------- -{-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE PatternGuards #-} module Main(main) where@@ -234,8 +233,8 @@ dispatch pn _ _ = usage pn unpack :: String -> Flag -> String -> IO ()-unpack pn prec orig =- case (prec, length s, allHex, allBin) of+unpack pn precFlag orig =+ case (precFlag, length s, allHex, allBin) of (FPType HP, 4, True, _ ) -> putStrLn $ displayFP $ integerToFP HP hexVal (FPType HP, 16, _ , True) -> putStrLn $ displayFP $ integerToFP HP binVal (FPType SP, 8, True, _ ) -> putStrLn $ displayFP $ integerToFP SP hexVal@@ -259,7 +258,7 @@ (IType W64, 16, True, _ ) -> putStrLn $ displayWord W64 hexVal (IType W64, 64, _ , True) -> putStrLn $ displayWord W64 binVal _ -> if not (null orig)- then do case prec of+ then do case precFlag of FPType HP -> putStrLn $ "ERROR: HP format requires 4 hex or 16 bin digits, received: " ++ what FPType SP -> putStrLn $ "ERROR: SP format requires 8 hex or 32 bin digits, received: " ++ what FPType DP -> putStrLn $ "ERROR: DP format requires 16 hex or 64 bin digits, received: " ++ what
crackNum.cabal view
@@ -1,5 +1,5 @@ Name: crackNum-Version: 2.3+Version: 2.4 Synopsis: Crack various integer, floating-point data formats Description: Crack HP, SP and DP floats and 8, 16, 32, 64 bit words and integers. .@@ -15,6 +15,8 @@ Cabal-version: 1.14 Extra-Source-Files: INSTALL, README.md, COPYRIGHT, CHANGES.md, crackNum.vim +Tested-With : GHC==8.10.2+ source-repository head type: git location: git://github.com/LeventErkok/crackNum.git@@ -23,7 +25,7 @@ main-is : Data/Numbers/CrackNum/Main.hs ghc-options : -Wall default-language: Haskell2010- build-depends: base >= 4 && < 5, array >= 0.4.0.1, FloatingHex >= 0.4+ build-depends: base >= 4.11 && < 5, array, FloatingHex other-modules: Data.Numbers.CrackNum , Data.Numbers.CrackNum.Utils , Data.Numbers.CrackNum.Data