Skip to content

Commit

Permalink
Fix -Wderiving-typeable
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Oct 14, 2024
1 parent e4e28ed commit 7e26322
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/Test/Tasty/Bench.hs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,6 @@ command-line options. Here is an example:

{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
Expand Down Expand Up @@ -709,7 +708,6 @@ import Control.Arrow (first, second)
import Control.DeepSeq (NFData, force, rnf)
import Control.Exception (bracket, evaluate)
import Control.Monad (void, unless, guard, (>=>), when)
import Data.Data (Typeable)
import Data.Foldable (foldMap, traverse_)
import Data.Int (Int64)
import Data.IORef
Expand Down Expand Up @@ -801,7 +799,6 @@ newtype RelStDev = RelStDev Double
-- ^ @since 0.4
, Fractional
-- ^ @since 0.4
, Typeable
)

-- | Whether to measure CPU time or wall-clock time.
Expand Down Expand Up @@ -831,7 +828,6 @@ data TimeMode = CpuTime
-- ^ Measure CPU time.
| WallTime
-- ^ Measure wall-clock time.
deriving (Typeable)

#ifdef MIN_VERSION_tasty
instance IsOption RelStDev where
Expand Down Expand Up @@ -864,7 +860,6 @@ newtype FailIfSlower = FailIfSlower Double
-- ^ @since 0.4
, Fractional
-- ^ @since 0.4
, Typeable
)

instance IsOption FailIfSlower where
Expand Down Expand Up @@ -897,7 +892,6 @@ newtype FailIfFaster = FailIfFaster Double
-- ^ @since 0.4
, Fractional
-- ^ @since 0.4
, Typeable
)

instance IsOption FailIfFaster where
Expand Down Expand Up @@ -936,7 +930,7 @@ newtype Benchmarkable =
-- | @since 0.3
Benchmarkable
{ unBenchmarkable :: Word64 -> IO () -- ^ Run benchmark given number of times.
} deriving (Typeable)
}

#ifdef MIN_VERSION_tasty

Expand Down Expand Up @@ -1707,7 +1701,6 @@ newtype CsvPath = CsvPath FilePath
-- ^ @since 0.4
, Ord
-- ^ @since 0.4
, Typeable
)

instance IsOption (Maybe CsvPath) where
Expand Down Expand Up @@ -1786,7 +1779,6 @@ newtype SvgPath = SvgPath FilePath
-- ^ @since 0.4
, Ord
-- ^ @since 0.4
, Typeable
)

instance IsOption (Maybe SvgPath) where
Expand Down Expand Up @@ -1925,7 +1917,6 @@ newtype BaselinePath = BaselinePath FilePath
-- ^ @since 0.4
, Ord
-- ^ @since 0.4
, Typeable
)

instance IsOption (Maybe BaselinePath) where
Expand Down

0 comments on commit 7e26322

Please sign in to comment.