-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Read strings describing a number of bytes like 2Kb and 0.5 MiB -- -- Please see the README on GitHub at -- https://github.com/danielrolls/byte-count-reader#readme @package byte-count-reader @version 0.10.1.7 -- | This library is for reading strings describing a number of bytes like -- 2Kb and 0.5 MiB. module Data.ByteCountReader -- | Read strings describing a number of bytes like 2KB and 0.5 MiB. The -- units KB, MB, GB and TB are assumed to be base 10 (e.g. 2KB = 2 x -- 1000). The units KiB, MiB, GiB and TiB are assumed to be base 2 (e.g. -- 2KiB = 2 * 1024). sizeInBytes :: Text -> Maybe Integer -- | Read strings describing a number of bytes like 2KB and 0.5 MiB -- assuming 1Kb is 1024 bytes, not 1000. The units KB, MB, GB and TB are -- assumed to be base 2 (e.g. 2KB = 2 x 1024). The units KiB, MiB, GiB -- and TiB are assumed to be base 2 (e.g. 2KiB = 2 * 1024). sizeInBytesAssumingBase2 :: Text -> Maybe Integer module Paths_byte_count_reader version :: Version getBinDir :: IO FilePath getLibDir :: IO FilePath getDynLibDir :: IO FilePath getDataDir :: IO FilePath getLibexecDir :: IO FilePath getDataFileName :: FilePath -> IO FilePath getSysconfDir :: IO FilePath