byte-count-reader 0.10.1.1 → 0.10.1.2
raw patch · 2 files changed
+30/−27 lines, 2 filesdep ~textPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: text
API changes (from Hackage documentation)
Files
- byte-count-reader.cabal +29/−27
- test/Spec.hs +1/−0
byte-count-reader.cabal view
@@ -1,51 +1,53 @@-cabal-version: 2.2-name: byte-count-reader-version: 0.10.1.1-license: GPL-3.0-only-license-file: LICENSE-copyright: 2020 Daniel Rolls-maintainer: daniel.rolls.27@googlemail.com-author: Daniel Rolls-homepage: https://github.com/danielrolls/byte-count-reader#readme-bug-reports: https://github.com/danielrolls/byte-count-reader/issues-synopsis: Read strings describing a number of bytes like 2Kb and 0.5 MiB+cabal-version: 2.2+name: byte-count-reader+version: 0.10.1.2+license: GPL-3.0-only+license-file: LICENSE+copyright: 2020 Daniel Rolls+maintainer: daniel.rolls.27@googlemail.com+author: Daniel Rolls+homepage: https://github.com/danielrolls/byte-count-reader#readme+bug-reports: https://github.com/danielrolls/byte-count-reader/issues+synopsis:+ Read strings describing a number of bytes like 2Kb and 0.5 MiB+ description: Please see the README on GitHub at <https://github.com/danielrolls/byte-count-reader#readme>-category: Text-build-type: Simple++category: Text+build-type: Simple extra-source-files: README.md ChangeLog.md source-repository head- type: git+ type: git location: https://github.com/danielrolls/byte-count-reader library exposed-modules: Data.ByteCountReader Paths_byte_count_reader- hs-source-dirs: src- autogen-modules:- Paths_byte_count_reader- default-language: Haskell2010++ hs-source-dirs: src+ autogen-modules: Paths_byte_count_reader+ default-language: Haskell2010 default-extensions: OverloadedStrings build-depends: base >=4.7 && <5, extra >=1.6.21 && <1.8, parsec >=3.1.14.0 && <3.2, parsec-numbers >=0.1.0 && <0.2,- text >=1.2.4.0 && <1.3+ text >=1.2.3.2 && <1.3 test-suite haskelltest-test- type: exitcode-stdio-1.0- main-is: Spec.hs- hs-source-dirs: test- other-modules:- Paths_byte_count_reader- default-language: Haskell2010+ type: exitcode-stdio-1.0+ main-is: Spec.hs+ hs-source-dirs: test+ other-modules: Paths_byte_count_reader+ default-language: Haskell2010 default-extensions: OverloadedStrings- ghc-options: -threaded -rtsopts -with-rtsopts=-N+ ghc-options: -threaded -rtsopts -with-rtsopts=-N build-depends: base >=4.7 && <5, byte-count-reader -any,@@ -53,4 +55,4 @@ hspec >=2.7.1 && <2.8, parsec >=3.1.14.0 && <3.2, parsec-numbers >=0.1.0 && <0.2,- text >=1.2.4.0 && <1.3+ text >=1.2.3.2 && <1.3
test/Spec.hs view
@@ -25,6 +25,7 @@ , ("3 kb", 3072) , (".5 MiB", 524288) , ("4 GiB", 4294967296)+ , ("2 TiB", 2199023255552) ] where testHappyPathScenarios functionUnderTest = foldl (>>) (return ()) . map (parseTest functionUnderTest) parseTest functionUnderTest (string, expectedValue) = it ("Parse " <> unpack string) $