Skip to content

Commit 091ad0a

Browse files
committed
refactor: simplify defConfig by removing unnecessary fields
1 parent ac4205c commit 091ad0a

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

ghcide-bench/src/Experiments.hs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -396,28 +396,7 @@ examplesPath :: FilePath
396396
examplesPath = "bench/example"
397397

398398
defConfig :: Config
399-
defConfig = Config
400-
{ verbosity = Normal
401-
, shakeProfiling = Nothing
402-
, otMemoryProfiling = Nothing
403-
, outputCSV = "results.csv"
404-
, buildTool = Cabal
405-
, ghcideOptions = []
406-
, matches = []
407-
, repetitions = Nothing
408-
, ghcide = "ghcide"
409-
, timeoutLsp = 60
410-
, example = Example
411-
{ exampleName = "Cabal"
412-
, exampleDetails = ExampleHackage ExamplePackage
413-
{ packageName = "Cabal"
414-
, packageVersion = makeVersion [3,16,1,0]
415-
}
416-
, exampleModules = ["src/Distribution/Simple.hs"]
417-
, exampleExtraArgs = []
418-
}
419-
, lspConfig = False
420-
}
399+
Success defConfig = execParserPure defaultPrefs (info configP fullDesc) []
421400

422401
quiet, verbose :: Config -> Bool
423402
verbose = (== All) . verbosity

0 commit comments

Comments
 (0)