File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,20 @@ module ParserBench (benchmarks) where
22
33import Nix.Parser
44
5- import Control.Applicative
65import Criterion
76
87benchFile :: FilePath -> Benchmark
9- benchFile = bench <*> whnfIO . parseNixFile . (" data/" ++ )
8+ benchFile = bench <*> whnfIO . parseNixFile . (" data/" <> )
109
1110benchmarks :: Benchmark
1211benchmarks = bgroup
13- " Parser"
14- [ benchFile " nixpkgs-all-packages.nix"
15- , benchFile " nixpkgs-all-packages-pretty.nix"
16- , benchFile " let-comments.nix"
17- , benchFile " let-comments-multiline.nix"
18- , benchFile " let.nix"
19- , benchFile " simple.nix"
20- , benchFile " simple-pretty.nix"
21- ]
12+ " Parser" $
13+ fmap benchFile
14+ [ " nixpkgs-all-packages.nix"
15+ , " nixpkgs-all-packages-pretty.nix"
16+ , " let-comments.nix"
17+ , " let-comments-multiline.nix"
18+ , " let.nix"
19+ , " simple.nix"
20+ , " simple-pretty.nix"
21+ ]
You can’t perform that action at this time.
0 commit comments