/byte-count-reader

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

Primary LanguageHaskellGNU General Public License v3.0GPL-3.0

Byte Count Reader


Build Status Hackage Stackage

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