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

[ gpl, library, text ] [ Propose Tags ]


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

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,,,,,
Change log
Dependencies base (>=4.7 && <5), extra (>=1.6.21 && <1.8), parsec (>= && <3.2), parsec-numbers (>=0.1.0 && <0.2), text (>= && <1.3) [details]
License GPL-3.0-only
Copyright 2020 Daniel Rolls
Author Daniel Rolls
Revised Revision 1 made by danielrolls at 2020-05-31T09:10:57Z
Category Text
Home page
Bug tracker
Source repo head: git clone
Uploaded by danielrolls at 2020-05-25T21:44:42Z
Distributions LTSHaskell:, NixOS:, Stackage:
Downloads 2039 total (15 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-05-25 [all 1 reports]

Readme for byte-count-reader-

[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