byteunits 0.4.0.2 → 0.4.0.3
raw patch · 2 files changed
+9/−9 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- byteunits.cabal +5/−5
- src/Data/ByteUnits.hs +4/−4
byteunits.cabal view
@@ -1,11 +1,13 @@--- This file has been generated from package.yaml by hpack version 0.21.2.+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.33.0. -- -- see: https://github.com/sol/hpack ----- hash: 20179e2125273750a449e60394c889ddc2f0e22d03d684a96fbb3f20d15e3f41+-- hash: 1aebbb6199a4258e8480dce71f674a6d04dc9dedb98013f431bf1a3587852931 name: byteunits-version: 0.4.0.2+version: 0.4.0.3 description: Human friendly conversion between byte units (KB, MB, GB...)... synopsis: Human friendly conversion between byte units (KB, MB, GB...) license: BSD3@@ -16,8 +18,6 @@ homepage: https://github.com/chrissound/byteunits#readme bug-reports: https://github.com/chrissound/byteunits/issues build-type: Simple-cabal-version: >= 1.10- extra-source-files: ChangeLog.md
src/Data/ByteUnits.hs view
@@ -36,8 +36,8 @@ MegaBytes -> v * (1024 ** 2) GigaBytes -> v * (1024 ** 3) TeraBytes -> v * (1024 ** 4)- PetaBytes -> v * (1024 ** 4)- ExaBytes -> v * (1024 ** 5)+ PetaBytes -> v * (1024 ** 5)+ ExaBytes -> v * (1024 ** 6) -- | Converts the ByteValue to an ByteValue with the specified ByteUnit --@@ -50,8 +50,8 @@ MegaBytes -> ByteValue (bytes / (1024 ** 2)) MegaBytes GigaBytes -> ByteValue (bytes / (1024 ** 3)) GigaBytes TeraBytes -> ByteValue (bytes / (1024 ** 4)) TeraBytes- PetaBytes -> ByteValue (bytes / (1024 ** 4)) PetaBytes- ExaBytes -> ByteValue (bytes / (1024 ** 5)) ExaBytes+ PetaBytes -> ByteValue (bytes / (1024 ** 5)) PetaBytes+ ExaBytes -> ByteValue (bytes / (1024 ** 6)) ExaBytes where bytes = getBytes bv -- | Converts to the largest unit size provided the float value is > 1