Skip to content

Commit f9d4e0f

Browse files
ndmitchellcocreature
authored andcommitted
No warnings (#119)
* Remove warnings * Turn on warnings when testing with Azure
1 parent 32a049c commit f9d4e0f

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

azure-pipelines.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
displayName: 'Install Stack'
4040
- bash: stack setup
4141
displayName: 'stack setup'
42-
- bash: stack build --only-dependencies --ghc-options=-Werror
42+
- bash: stack build --only-dependencies
4343
displayName: 'stack build --only-dependencies'
44-
- bash: stack test || stack test || stack test
44+
- bash: stack test --ghc-options=-Werror || stack test --ghc-options=-Werror || stack test --ghc-options=-Werror
4545
# ghcide stack tests are flaky, see https://github.com/digital-asset/daml/issues/2606.
46-
displayName: 'stack test'
46+
displayName: 'stack test --ghc-options=-Werror'
4747
- bash: |
4848
mkdir -p .azure-cache
4949
tar czf .azure-cache/stack-root.tar.gz -C $HOME .stack
@@ -83,11 +83,11 @@ jobs:
8383
displayName: 'Install Stack'
8484
- bash: stack setup --stack-yaml=stack84.yaml
8585
displayName: 'stack setup --stack-yaml=stack84.yaml'
86-
- bash: stack build --only-dependencies --stack-yaml=stack84.yaml --ghc-options=-Werror
86+
- bash: stack build --only-dependencies --stack-yaml=stack84.yaml
8787
displayName: 'stack build --only-dependencies --stack-yaml=stack84.yaml'
88-
- bash: stack test --stack-yaml=stack84.yaml || stack test --stack-yaml=stack84.yaml || stack test --stack-yaml=stack84.yaml
88+
- bash: stack test --stack-yaml=stack84.yaml --ghc-options=-Werror || stack test --stack-yaml=stack84.yaml --ghc-options=-Werror || stack test --stack-yaml=stack84.yaml --ghc-options=-Werror
8989
# ghcide stack tests are flaky, see https://github.com/digital-asset/daml/issues/2606.
90-
displayName: 'stack test --stack-yaml=stack84.yaml'
90+
displayName: 'stack test --stack-yaml=stack84.yaml --ghc-options=-Werror'
9191
- bash: |
9292
mkdir -p .azure-cache
9393
tar czf .azure-cache/stack-root.tar.gz -C $HOME .stack
@@ -127,11 +127,11 @@ jobs:
127127
displayName: 'Install Stack'
128128
- bash: stack setup --stack-yaml=stack-ghc-lib.yaml
129129
displayName: 'stack setup --stack-yaml=stack-ghc-lib.yaml'
130-
- bash: stack build --only-dependencies --stack-yaml=stack-ghc-lib.yaml --ghc-options=-Werror
130+
- bash: stack build --only-dependencies --stack-yaml=stack-ghc-lib.yaml
131131
displayName: 'stack build --only-dependencies --stack-yaml=stack-ghc-lib.yaml'
132-
- bash: stack test --stack-yaml=stack-ghc-lib.yaml || stack test --stack-yaml=stack-ghc-lib.yaml || stack test --stack-yaml=stack-ghc-lib.yaml
132+
- bash: stack test --stack-yaml=stack-ghc-lib.yaml --ghc-options=-Werror || stack test --stack-yaml=stack-ghc-lib.yaml --ghc-options=-Werror || stack test --stack-yaml=stack-ghc-lib.yaml --ghc-options=-Werror
133133
# ghcide stack tests are flaky, see https://github.com/digital-asset/daml/issues/2606.
134-
displayName: 'stack test --stack-yaml=stack-ghc-lib.yaml'
134+
displayName: 'stack test --stack-yaml=stack-ghc-lib.yaml --ghc-options=-Werror'
135135
- bash: |
136136
mkdir -p .azure-cache
137137
tar czf .azure-cache/stack-root.tar.gz -C $HOME .stack

src/Development/IDE/Core/Rules.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ import qualified Development.IDE.Spans.AtPoint as AtPoint
6060
import Development.IDE.Core.Service
6161
import Development.IDE.Core.Shake
6262
import Development.Shake.Classes
63-
import System.Directory
64-
import System.FilePath
65-
import MkIface
6663

6764
-- | This is useful for rules to convert rules that can only produce errors or
6865
-- a result into the more general IdeResult type that supports producing

0 commit comments

Comments
 (0)