byte-count-reader: Read strings describing a number of bytes like 2Kb and 0.5 MiB

[ gpl, library, text ] [ Propose Tags ]

Please see the README on GitHub at https://github.com/danielrolls/byte-count-reader#readme


[Skip to Readme]
Versions [RSS] [faq] 0.9.0.0, 0.10.0.0, 0.10.0.1, 0.10.1.1, 0.10.1.2, 0.10.1.3, 0.10.1.4, 0.10.1.5, 0.10.1.6
Change log ChangeLog.md
Dependencies 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) [details]
License GPL-3.0-only
Copyright 2020 Daniel Rolls
Author Daniel Rolls
Maintainer daniel.rolls.27@googlemail.com
Revised Revision 1 made by danielrolls at 2020-05-31T09:10:57Z
Category Text
Home page https://github.com/danielrolls/byte-count-reader#readme
Bug tracker https://github.com/danielrolls/byte-count-reader/issues
Source repo head: git clone https://github.com/danielrolls/byte-count-reader
Uploaded by danielrolls at 2020-05-25T21:44:42Z
Distributions LTSHaskell:0.10.1.5, NixOS:0.10.1.5, Stackage:0.10.1.6
Downloads 826 total (127 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-05-25 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Candidates


Readme for byte-count-reader-0.10.0.0

[back to package description]

Byte Count Reader


Build Status Hackage

This library is for reading strings describing a number of bytes like 2Kb and 0.5 MiB.

The units KB, MB, GB and TB imply base 10 (e.g. 2KB = 2 x 1000). The units KiB, MiB, GiB and TiB imply base 2 (e.g. 2KiB = 2 * 1024).

The following are examples of strings that are accepted:

  • 1b
  • 2 KiB
  • 3.5 MB
  • 10    gib
  • 100tb