Skip to content

Commit 5005793

Browse files
committed
feedbacks
1 parent 03fe3d2 commit 5005793

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

bench/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ By default it compares HEAD with "origin/master"
1111

1212
The benchmark suites runs a set of experiments (hover, completion, edit, etc.)
1313
over all the defined examples (currently Cabal and lsp-types). Examples are defined
14-
in `bench/config.yaml` whereas experiments are coded in `ghcide/bench/lib/Experiments.hs`.
14+
in `bench/config.yaml` whereas experiments are coded in `ghcide-bench/src/Experiments.hs`.
1515

1616
# Phony targets
1717

bench/config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,21 @@ versions:
8080
# - HEAD~1
8181
- HEAD
8282

83+
# A list of plugin configurations to analyze
8384
configurations:
85+
# A configuration contains one or more plugins:
86+
# - ConfigurationName:
87+
# - plugin1
88+
# - plugin2
89+
#
90+
# There is short-hand notation for defining singleton configurations.
91+
# Simply give the plugin name top level:
92+
# - plugin1
93+
#
94+
# Some plugins are implicitly included since they are required by the benchmark driver:
95+
# The implicitly included plugins are:
96+
# - ghcide-core
97+
# - ghcide-hover-and-symbols
8498
- None: []
8599
- Core:
86100
- callHierarchy

exe/Main.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{-# LANGUAGE CPP #-}
44
{-# LANGUAGE NamedFieldPuns #-}
55
{-# LANGUAGE OverloadedStrings #-}
6-
{-# LANGUAGE PackageImports #-}
76
module Main(main) where
87

98
import Control.Arrow ((&&&))

ghcide/.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ cabal.project.local
77
/.tasty-rerun-log
88
.vscode
99
/.hlint-*
10-
bench/example/*
11-
# don't ignore the example file, we need it!
12-
!bench/example/HLS
13-
bench-results/
14-
bench-temp/
1510
.shake/
1611
ghcide
1712
ghcide-bench

haskell-language-server.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ executable haskell-language-server
415415
-- Enable collection of heap statistics
416416
"-with-rtsopts=-I0 -A128M -T"
417417
-Wno-unticked-promoted-constructors
418+
if flag(pedantic)
419+
ghc-options: -Werror
418420
if !os(windows) && flag(dynamic)
419421
-- We want to link against the dyn rts just like official GHC binaries do;
420422
-- the linked rts determines how external libs are loaded dynamically by TH.

0 commit comments

Comments
 (0)