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

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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


[Skip to Readme]

Properties

Versions 0.9.0.0, 0.10.0.0, 0.10.0.1, 0.10.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, 0.10.1.7, 0.10.1.8, 0.10.1.9, 0.10.1.10, 0.10.1.11, 0.10.1.12
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
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-08-17T19:16:31Z

Modules

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for byte-count-reader-0.10.1

[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: