-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Human friendly conversion between byte units (KB, MB, GB...) -- -- Human friendly conversion between byte units (KB, MB, GB...)... @package byteunits @version 0.2.0.2 module Data.ByteUnits data ByteUnit Bytes :: ByteUnit KiloBytes :: ByteUnit MegaBytes :: ByteUnit GigaBytes :: ByteUnit TeraBytes :: ByteUnit PetaBytes :: ByteUnit ExaBytes :: ByteUnit getUnits :: ByteUnit -> Float -> Float -- | Rounds up to the highest unit provided it's > 1 -- --
-- >>> getAppropriateUnits 1024 -- (KiloBytes,1.0) ---- --
-- >>> getAppropriateUnits (3.5 * 1024* 1024) -- (MegaBytes,3.5) --getAppropriateUnits :: Float -> (ByteUnit, Float) instance GHC.Classes.Eq Data.ByteUnits.ByteUnit instance GHC.Show.Show Data.ByteUnits.ByteUnit