summaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-08-07 13:31:43 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-08-07 13:31:43 -0400
commit7e2d07484f2ae9912f34e30e8b5614fb86099eed (patch)
tree23606c3d4779317484683daf6d88d05dce6be260 /Utility
parenta66e1f68caeb045dc0c81388076915f5f06bddec (diff)
parent2a9077f4e92b588200eafcda4d485e95998917a2 (diff)
Merge branch 'master' into assistant
Diffstat (limited to 'Utility')
-rw-r--r--Utility/DataUnits.hs48
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