diff options
author | Joey Hess <joey@kitenet.net> | 2012-08-07 11:10:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-07 11:10:41 -0400 |
commit | 96d0a36f8589ef1ee4f23adaae7ea512adb7a617 (patch) | |
tree | 9eba375e7d8a59a089adea4df0a11d0f400561bf /Utility/DataUnits.hs | |
parent | a0516946ea56ee3ebcce6df0a1c709fc5bae3dc4 (diff) |
move comment
Diffstat (limited to 'Utility/DataUnits.hs')
-rw-r--r-- | Utility/DataUnits.hs | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/Utility/DataUnits.hs b/Utility/DataUnits.hs index 5d80a04b9..101d64c5a 100644 --- a/Utility/DataUnits.hs +++ b/Utility/DataUnits.hs @@ -3,30 +3,9 @@ - Copyright 2011 Joey Hess <joey@kitenet.net> - - Licensed under the GNU GPL version 3 or higher. - -} - -module Utility.DataUnits ( - dataUnits, - storageUnits, - memoryUnits, - bandwidthUnits, - oldSchoolUnits, - - roughSize, - compareSizes, - readSize -) where - -import Data.List -import Data.Char - -type ByteSize = Integer -type Name = String -type Abbrev = String -data Unit = Unit ByteSize Abbrev Name - deriving (Ord, Show, Eq) - -{- And now a rant: + - + - + - And now a rant: - - In the beginning, we had powers of two, and they were good. - @@ -56,6 +35,27 @@ data Unit = Unit ByteSize Abbrev Name - progress? -} +module Utility.DataUnits ( + dataUnits, + storageUnits, + memoryUnits, + bandwidthUnits, + oldSchoolUnits, + + roughSize, + compareSizes, + readSize +) where + +import Data.List +import Data.Char + +type ByteSize = Integer +type Name = String +type Abbrev = String +data Unit = Unit ByteSize Abbrev Name + deriving (Ord, Show, Eq) + dataUnits :: [Unit] dataUnits = storageUnits ++ memoryUnits |