Skip to content

Commit

Permalink
Clean up benchmark code slightly with criterion-1.5.4.0's describeWit…
Browse files Browse the repository at this point in the history
…h function
  • Loading branch information
RyanGlScott committed Feb 14, 2019
1 parent a1f0b6a commit be982f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions benchmarks/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ parseBenchArgs = BenchArgs

main :: IO ()
main = do
args <- execParser $ info (helper <*> parseBenchArgs) $
header "vector benchmark suite" <> fullDesc
args <- execParser $ describeWith parseBenchArgs

let useSeed = seed args
let useSize = size args
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/vector-benchmarks.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Executable algorithms
Main-Is: Main.hs

Build-Depends: base >= 2 && < 5, array,
criterion >= 0.5 && < 1.6,
criterion >= 1.5.4.0 && < 1.6,
mwc-random >= 0.5 && < 0.15,
vector, optparse-applicative

Expand Down

0 comments on commit be982f2

Please sign in to comment.