diff options
Diffstat (limited to 'Types/Cost.hs')
-rw-r--r-- | Types/Cost.hs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Types/Cost.hs b/Types/Cost.hs index 2aa6ee7..b3aed71 100644 --- a/Types/Cost.hs +++ b/Types/Cost.hs @@ -7,8 +7,6 @@ module Types.Cost where -import Utility.HumanTime - -- | An estimated cost to perform an operation. data Cost op = CPUCost Seconds -- ^ using 1 CPU core @@ -18,10 +16,7 @@ unknownCost :: Cost op unknownCost = CPUCost (Seconds 0) newtype Seconds = Seconds Integer - deriving (Num, Eq, Ord) - -instance Show Seconds where - show (Seconds n) = fromDuration (Duration n) + deriving (Num, Eq, Ord, Show) data UsingHardware = UsingCPU | UsingGPU | UsingASIC deriving (Show) |