1. Bryan O'Sullivan
  2. criterion

Commits

Bryan O'Sullivan  committed 1fff75c

Example cleanup

  • Participants
  • Parent commits 40d584a
  • Branches default

Comments (0)

Files changed (1)

File examples/Judy.hs

View file
-{-# LANGUAGE ScopedTypeVariables #-}
-{-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE FlexibleInstances, ScopedTypeVariables #-}
 
--- cabal install judy.
+-- cabal install judy
 
+import Control.Monad (forM_)
+import Criterion.Config
 import Criterion.Main
-import Criterion.Config
+import qualified Data.IntMap as I
+import qualified Data.Judy as J
 
-import Control.Monad
-import qualified Data.Judy as J
-import qualified Data.IntMap as I
-import Data.List
-
+-- Work around the fact that the GC won't run finalizers aggressively
+-- enough for us.
 myConfig = defaultConfig { cfgPerformGC = ljust True }
 
 main = defaultMainWith myConfig [