Skip to content

Commit 11b5c2e

Browse files
Eliminate unused LANGUAGE pragmas.
1 parent b64caa7 commit 11b5c2e

File tree

21 files changed

+2
-44
lines changed

21 files changed

+2
-44
lines changed

hie-compat/src-ghc86/Compat/HieDebug.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{-
22
Functions to validate and check .hie file ASTs generated by GHC.
33
-}
4-
{-# LANGUAGE StandaloneDeriving #-}
54
{-# LANGUAGE OverloadedStrings #-}
65
{-# LANGUAGE FlexibleContexts #-}
76
module Compat.HieDebug where

hie-compat/src-ghc86/Compat/HieTypes.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ For more information see https://gitlab.haskell.org/ghc/ghc/wikis/hie-files
55
-}
66
{-# LANGUAGE DeriveTraversable #-}
77
{-# LANGUAGE DeriveDataTypeable #-}
8-
{-# LANGUAGE TypeSynonymInstances #-}
98
{-# LANGUAGE FlexibleInstances #-}
109
{-# LANGUAGE ScopedTypeVariables #-}
1110
{-# OPTIONS_GHC -Wno-orphans #-}

hls-plugin-api/src/Ide/Types.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE GADTs #-}
2-
{-# LANGUAGE OverloadedStrings #-}
32
{-# LANGUAGE ScopedTypeVariables #-}
43

54
module Ide.Types

plugins/default/src/Ide/Plugin/Floskell.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
{-# LANGUAGE RecordWildCards #-}
21
{-# LANGUAGE OverloadedStrings #-}
32
{-# LANGUAGE ScopedTypeVariables #-}
4-
{-# LANGUAGE TypeApplications #-}
5-
{-# LANGUAGE ViewPatterns #-}
63

74
module Ide.Plugin.Floskell
85
(

plugins/default/src/Ide/Plugin/Fourmolu.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
{-# LANGUAGE DisambiguateRecordFields #-}
12
{-# LANGUAGE LambdaCase #-}
23
{-# LANGUAGE OverloadedStrings #-}
34
{-# LANGUAGE PackageImports #-}
4-
{-# LANGUAGE RecordWildCards #-}
55
{-# LANGUAGE TypeApplications #-}
66

77
module Ide.Plugin.Fourmolu (

plugins/default/src/Ide/Plugin/Ormolu.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{-# LANGUAGE OverloadedStrings #-}
22
{-# LANGUAGE PackageImports #-}
3-
{-# LANGUAGE RecordWildCards #-}
43
{-# LANGUAGE ScopedTypeVariables #-}
54
{-# LANGUAGE TypeApplications #-}
65

plugins/hls-eval-plugin/src/Ide/Plugin/Eval/CodeLens.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
{-# LANGUAGE ExtendedDefaultRules #-}
55
{-# LANGUAGE FlexibleContexts #-}
66
{-# LANGUAGE FlexibleInstances #-}
7-
{-# LANGUAGE ImplicitParams #-}
87
{-# LANGUAGE NamedFieldPuns #-}
98
{-# LANGUAGE OverloadedStrings #-}
109
{-# LANGUAGE RankNTypes #-}

plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Util.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE ImplicitParams #-}
21
{-# LANGUAGE ScopedTypeVariables #-}
32
{-# LANGUAGE NoMonomorphismRestriction #-}
43
{-# OPTIONS_GHC -Wno-orphans #-}

plugins/hls-explicit-imports-plugin/src/Ide/Plugin/ExplicitImports.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
{-# LANGUAGE DeriveGeneric #-}
44
{-# LANGUAGE DerivingStrategies #-}
55
{-# LANGUAGE DuplicateRecordFields #-}
6-
{-# LANGUAGE LambdaCase #-}
76
{-# LANGUAGE NamedFieldPuns #-}
87
{-# LANGUAGE OverloadedStrings #-}
98
{-# LANGUAGE RecordWildCards #-}
109
{-# LANGUAGE ScopedTypeVariables #-}
1110
{-# LANGUAGE TypeFamilies #-}
12-
{-# LANGUAGE ViewPatterns #-}
1311

1412
#include "ghc-api-version.h"
1513

plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
{-# LANGUAGE FlexibleContexts #-}
77
{-# LANGUAGE FlexibleInstances #-}
88
{-# LANGUAGE OverloadedStrings #-}
9-
{-# LANGUAGE PackageImports #-}
10-
{-# LANGUAGE RecordWildCards #-}
11-
{-# LANGUAGE TupleSections #-}
129
{-# LANGUAGE TypeFamilies #-}
13-
{-# LANGUAGE ViewPatterns #-}
1410

1511
module Ide.Plugin.Hlint
1612
(

plugins/hls-retrie-plugin/src/Ide/Plugin/Retrie.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
{-# LANGUAGE RecordWildCards #-}
99
{-# LANGUAGE ScopedTypeVariables #-}
1010
{-# LANGUAGE StandaloneDeriving #-}
11-
{-# LANGUAGE TupleSections #-}
1211
{-# LANGUAGE TypeApplications #-}
1312
{-# LANGUAGE TypeFamilies #-}
1413

plugins/tactics/src/Ide/Plugin/Tactic.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
{-# LANGUAGE LambdaCase #-}
44
{-# LANGUAGE NumDecimals #-}
55
{-# LANGUAGE OverloadedStrings #-}
6-
{-# LANGUAGE PatternSynonyms #-}
76
{-# LANGUAGE ScopedTypeVariables #-}
87
{-# LANGUAGE TupleSections #-}
9-
{-# LANGUAGE TypeApplications #-}
108
{-# LANGUAGE ViewPatterns #-}
119

1210
-- | A plugin that uses tactics to synthesize code
@@ -365,4 +363,3 @@ getRhsPosVals rss tcs
365363
-- TODO(sandy): Make this more robust
366364
isHole :: OccName -> Bool
367365
isHole = isPrefixOf "_" . occNameString
368-

plugins/tactics/src/Ide/Plugin/Tactic/Judgements.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE LambdaCase #-}
3-
{-# LANGUAGE RecordWildCards #-}
4-
{-# LANGUAGE TupleSections #-}
52
{-# LANGUAGE TypeApplications #-}
63
{-# LANGUAGE ViewPatterns #-}
74

@@ -377,4 +374,3 @@ isDisallowed _ = False
377374
expandDisallowed :: Provenance -> Provenance
378375
expandDisallowed (DisallowedPrv _ prv) = expandDisallowed prv
379376
expandDisallowed prv = prv
380-

plugins/tactics/src/Ide/Plugin/Tactic/KnownStrategies/QuickCheck.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE ViewPatterns #-}
2-
{-# LANGUAGE LambdaCase #-}
32

43
module Ide.Plugin.Tactic.KnownStrategies.QuickCheck where
54

@@ -109,4 +108,3 @@ mkArbitraryCall recursive_tc n ty =
109108
(n == 1)
110109
@@ arbitrary
111110
False -> arbitrary
112-

plugins/tactics/src/Ide/Plugin/Tactic/Machinery.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
{-# LANGUAGE ScopedTypeVariables #-}
2-
{-# LANGUAGE DeriveFunctor #-}
3-
{-# LANGUAGE DeriveGeneric #-}
4-
{-# LANGUAGE DerivingStrategies #-}
52
{-# LANGUAGE DerivingVia #-}
63
{-# LANGUAGE FlexibleContexts #-}
74
{-# LANGUAGE FlexibleInstances #-}
85
{-# LANGUAGE LambdaCase #-}
96
{-# LANGUAGE MonoLocalBinds #-}
107
{-# LANGUAGE MultiParamTypeClasses #-}
118
{-# LANGUAGE RecordWildCards #-}
12-
{-# LANGUAGE TypeSynonymInstances #-}
139
{-# LANGUAGE ViewPatterns #-}
1410
{-# LANGUAGE ViewPatterns #-}
1511
{-# OPTIONS_GHC -fno-warn-orphans #-}

plugins/tactics/src/Ide/Plugin/Tactic/Tactics.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
{-# LANGUAGE TupleSections #-}
22
{-# LANGUAGE DataKinds #-}
3-
{-# LANGUAGE TypeApplications #-}
4-
{-# LANGUAGE DeriveGeneric #-}
53
{-# LANGUAGE FlexibleContexts #-}
64
{-# LANGUAGE FlexibleInstances #-}
7-
{-# LANGUAGE LambdaCase #-}
85
{-# LANGUAGE MultiParamTypeClasses #-}
9-
{-# LANGUAGE TypeSynonymInstances #-}
106
{-# LANGUAGE ViewPatterns #-}
117

128
module Ide.Plugin.Tactic.Tactics
@@ -284,4 +280,3 @@ overAlgebraicTerms =
284280

285281
allNames :: Judgement -> [OccName]
286282
allNames = M.keys . jHypothesis
287-

plugins/tactics/src/Ide/Plugin/Tactic/Types.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
{-# LANGUAGE TypeApplications #-}
55
{-# LANGUAGE DeriveFunctor #-}
66
{-# LANGUAGE DeriveGeneric #-}
7-
{-# LANGUAGE DerivingStrategies #-}
87
{-# LANGUAGE FlexibleInstances #-}
98
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
109
{-# LANGUAGE MultiParamTypeClasses #-}
11-
{-# LANGUAGE TypeSynonymInstances #-}
1210
{-# OPTIONS_GHC -fno-warn-orphans #-}
1311

1412
module Ide.Plugin.Tactic.Types

src/Ide/Main.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
-- Copyright (c) 2019 The DAML Authors. All rights reserved.
22
-- SPDX-License-Identifier: Apache-2.0
33
{-# LANGUAGE CPP #-} -- To get precise GHC version
4-
{-# LANGUAGE TemplateHaskell #-}
54
{-# OPTIONS_GHC -Wno-dodgy-imports #-} -- GHC no longer exports def in GHC 8.6 and above
6-
{-# LANGUAGE DeriveGeneric #-}
7-
{-# LANGUAGE LambdaCase #-}
8-
{-# LANGUAGE NamedFieldPuns #-}
95
{-# LANGUAGE OverloadedStrings #-}
106
{-# LANGUAGE RecordWildCards #-}
117
{-# LANGUAGE ScopedTypeVariables #-}

test/functional/HaddockComments.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
{-# LANGUAGE DisambiguateRecordFields #-}
12
{-# LANGUAGE NamedFieldPuns #-}
23
{-# LANGUAGE OverloadedStrings #-}
3-
{-# LANGUAGE RecordWildCards #-}
44
{-# LANGUAGE ViewPatterns #-}
55

66
module HaddockComments

test/functional/ModuleName.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE NamedFieldPuns #-}
21
{-# LANGUAGE OverloadedStrings #-}
32
{-# LANGUAGE ScopedTypeVariables #-}
43

test/functional/Tactic.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE NamedFieldPuns #-}
21
{-# LANGUAGE OverloadedStrings #-}
32
{-# LANGUAGE ScopedTypeVariables #-}
43
{-# LANGUAGE ViewPatterns #-}

0 commit comments

Comments
 (0)