Skip to content

Commit

Permalink
Remove dependency on deepseq-generics (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjakobi authored Jun 25, 2020
1 parent 0aa1c6a commit 4bf0430
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions benchmarks/Benchmarks.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{-# LANGUAGE CPP, DeriveGeneric, GADTs, PackageImports, RecordWildCards #-}
{-# LANGUAGE CPP, DeriveAnyClass, DeriveGeneric, GADTs, PackageImports, RecordWildCards #-}

module Main where

import Control.DeepSeq
import Control.DeepSeq.Generics (genericRnf)
import Gauge (bench, bgroup, defaultMain, env, nf, whnf)
import Data.Bits ((.&.))
import Data.Functor.Identity
Expand Down Expand Up @@ -65,9 +64,7 @@ data Env = Env {
im :: !(IM.IntMap Int),
ihm :: !(IHM.Map String Int),
ihmbs :: !(IHM.Map BS.ByteString Int)
} deriving Generic

instance NFData Env where rnf = genericRnf
} deriving (Generic, NFData)

setupEnv :: IO Env
setupEnv = do
Expand Down
3 changes: 1 addition & 2 deletions unordered-containers.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ benchmark benchmarks
bytestring,
containers,
gauge >= 0.2.5 && < 0.3,
deepseq >= 1.1,
deepseq-generics,
deepseq >= 1.4,
hashable >= 1.0.1.1,
hashmap,
mtl,
Expand Down

0 comments on commit 4bf0430

Please sign in to comment.