byte-count-reader

Read strings describing a number of bytes like 2Kb and 0.5 MiB

https://github.com/danielrolls/byte-count-reader#readme

Version on this page:0.10.1.9
LTS Haskell 22.14:0.10.1.11
Stackage Nightly 2024-03-28:0.10.1.11
Latest on Hackage:0.10.1.11

See all snapshots byte-count-reader appears in

GPL-3.0-only licensed by Daniel Rolls
Maintained by [email protected]
This version can be pinned in stack with:byte-count-reader-0.10.1.9@sha256:19250abbb140fc9ac8e5c9a83cb97ea7b8d28371e9c2009c9a0dd48759739d95,1686

Module documentation for 0.10.1.9

Byte Count Reader


Build Status Hackage

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

The following are examples of strings that are accepted:

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

Changes

Changelog for byte-count-reader

Unreleased changes

0.10.1

  • Added a function that always assumes base 2 where ambiguities occur

0.10.0.1

  • Relaxed upper bound on extra <1.7 -> <1.8
  • Fixed incorrect link in README

0.10

  • bytesParser now accepts Text not [Char] datatypes
  • Moved usage of parsec3-numbers to parsec-numbers

0.9

  • Initial Version