File tree 21 files changed +2
-44
lines changed
hie-compat/src-ghc86/Compat
hls-eval-plugin/src/Ide/Plugin/Eval
hls-explicit-imports-plugin/src/Ide/Plugin
hls-hlint-plugin/src/Ide/Plugin
hls-retrie-plugin/src/Ide/Plugin 21 files changed +2
-44
lines changed Original file line number Diff line number Diff line change 1
1
{-
2
2
Functions to validate and check .hie file ASTs generated by GHC.
3
3
-}
4
- {-# LANGUAGE StandaloneDeriving #-}
5
4
{-# LANGUAGE OverloadedStrings #-}
6
5
{-# LANGUAGE FlexibleContexts #-}
7
6
module Compat.HieDebug where
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ For more information see https://gitlab.haskell.org/ghc/ghc/wikis/hie-files
5
5
-}
6
6
{-# LANGUAGE DeriveTraversable #-}
7
7
{-# LANGUAGE DeriveDataTypeable #-}
8
- {-# LANGUAGE TypeSynonymInstances #-}
9
8
{-# LANGUAGE FlexibleInstances #-}
10
9
{-# LANGUAGE ScopedTypeVariables #-}
11
10
{-# OPTIONS_GHC -Wno-orphans #-}
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE GADTs #-}
2
- {-# LANGUAGE OverloadedStrings #-}
3
2
{-# LANGUAGE ScopedTypeVariables #-}
4
3
5
4
module Ide.Types
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE RecordWildCards #-}
2
1
{-# LANGUAGE OverloadedStrings #-}
3
2
{-# LANGUAGE ScopedTypeVariables #-}
4
- {-# LANGUAGE TypeApplications #-}
5
- {-# LANGUAGE ViewPatterns #-}
6
3
7
4
module Ide.Plugin.Floskell
8
5
(
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE DisambiguateRecordFields #-}
1
2
{-# LANGUAGE LambdaCase #-}
2
3
{-# LANGUAGE OverloadedStrings #-}
3
4
{-# LANGUAGE PackageImports #-}
4
- {-# LANGUAGE RecordWildCards #-}
5
5
{-# LANGUAGE TypeApplications #-}
6
6
7
7
module Ide.Plugin.Fourmolu (
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE OverloadedStrings #-}
2
2
{-# LANGUAGE PackageImports #-}
3
- {-# LANGUAGE RecordWildCards #-}
4
3
{-# LANGUAGE ScopedTypeVariables #-}
5
4
{-# LANGUAGE TypeApplications #-}
6
5
Original file line number Diff line number Diff line change 4
4
{-# LANGUAGE ExtendedDefaultRules #-}
5
5
{-# LANGUAGE FlexibleContexts #-}
6
6
{-# LANGUAGE FlexibleInstances #-}
7
- {-# LANGUAGE ImplicitParams #-}
8
7
{-# LANGUAGE NamedFieldPuns #-}
9
8
{-# LANGUAGE OverloadedStrings #-}
10
9
{-# LANGUAGE RankNTypes #-}
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE ImplicitParams #-}
2
1
{-# LANGUAGE ScopedTypeVariables #-}
3
2
{-# LANGUAGE NoMonomorphismRestriction #-}
4
3
{-# OPTIONS_GHC -Wno-orphans #-}
Original file line number Diff line number Diff line change 3
3
{-# LANGUAGE DeriveGeneric #-}
4
4
{-# LANGUAGE DerivingStrategies #-}
5
5
{-# LANGUAGE DuplicateRecordFields #-}
6
- {-# LANGUAGE LambdaCase #-}
7
6
{-# LANGUAGE NamedFieldPuns #-}
8
7
{-# LANGUAGE OverloadedStrings #-}
9
8
{-# LANGUAGE RecordWildCards #-}
10
9
{-# LANGUAGE ScopedTypeVariables #-}
11
10
{-# LANGUAGE TypeFamilies #-}
12
- {-# LANGUAGE ViewPatterns #-}
13
11
14
12
#include "ghc-api-version.h"
15
13
Original file line number Diff line number Diff line change 6
6
{-# LANGUAGE FlexibleContexts #-}
7
7
{-# LANGUAGE FlexibleInstances #-}
8
8
{-# LANGUAGE OverloadedStrings #-}
9
- {-# LANGUAGE PackageImports #-}
10
- {-# LANGUAGE RecordWildCards #-}
11
- {-# LANGUAGE TupleSections #-}
12
9
{-# LANGUAGE TypeFamilies #-}
13
- {-# LANGUAGE ViewPatterns #-}
14
10
15
11
module Ide.Plugin.Hlint
16
12
(
Original file line number Diff line number Diff line change 8
8
{-# LANGUAGE RecordWildCards #-}
9
9
{-# LANGUAGE ScopedTypeVariables #-}
10
10
{-# LANGUAGE StandaloneDeriving #-}
11
- {-# LANGUAGE TupleSections #-}
12
11
{-# LANGUAGE TypeApplications #-}
13
12
{-# LANGUAGE TypeFamilies #-}
14
13
Original file line number Diff line number Diff line change 3
3
{-# LANGUAGE LambdaCase #-}
4
4
{-# LANGUAGE NumDecimals #-}
5
5
{-# LANGUAGE OverloadedStrings #-}
6
- {-# LANGUAGE PatternSynonyms #-}
7
6
{-# LANGUAGE ScopedTypeVariables #-}
8
7
{-# LANGUAGE TupleSections #-}
9
- {-# LANGUAGE TypeApplications #-}
10
8
{-# LANGUAGE ViewPatterns #-}
11
9
12
10
-- | A plugin that uses tactics to synthesize code
@@ -365,4 +363,3 @@ getRhsPosVals rss tcs
365
363
-- TODO(sandy): Make this more robust
366
364
isHole :: OccName -> Bool
367
365
isHole = isPrefixOf " _" . occNameString
368
-
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE DataKinds #-}
2
- {-# LANGUAGE LambdaCase #-}
3
- {-# LANGUAGE RecordWildCards #-}
4
- {-# LANGUAGE TupleSections #-}
5
2
{-# LANGUAGE TypeApplications #-}
6
3
{-# LANGUAGE ViewPatterns #-}
7
4
@@ -377,4 +374,3 @@ isDisallowed _ = False
377
374
expandDisallowed :: Provenance -> Provenance
378
375
expandDisallowed (DisallowedPrv _ prv) = expandDisallowed prv
379
376
expandDisallowed prv = prv
380
-
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE ViewPatterns #-}
2
- {-# LANGUAGE LambdaCase #-}
3
2
4
3
module Ide.Plugin.Tactic.KnownStrategies.QuickCheck where
5
4
@@ -109,4 +108,3 @@ mkArbitraryCall recursive_tc n ty =
109
108
(n == 1 )
110
109
@@ arbitrary
111
110
False -> arbitrary
112
-
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE ScopedTypeVariables #-}
2
- {-# LANGUAGE DeriveFunctor #-}
3
- {-# LANGUAGE DeriveGeneric #-}
4
- {-# LANGUAGE DerivingStrategies #-}
5
2
{-# LANGUAGE DerivingVia #-}
6
3
{-# LANGUAGE FlexibleContexts #-}
7
4
{-# LANGUAGE FlexibleInstances #-}
8
5
{-# LANGUAGE LambdaCase #-}
9
6
{-# LANGUAGE MonoLocalBinds #-}
10
7
{-# LANGUAGE MultiParamTypeClasses #-}
11
8
{-# LANGUAGE RecordWildCards #-}
12
- {-# LANGUAGE TypeSynonymInstances #-}
13
9
{-# LANGUAGE ViewPatterns #-}
14
10
{-# LANGUAGE ViewPatterns #-}
15
11
{-# OPTIONS_GHC -fno-warn-orphans #-}
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE TupleSections #-}
2
2
{-# LANGUAGE DataKinds #-}
3
- {-# LANGUAGE TypeApplications #-}
4
- {-# LANGUAGE DeriveGeneric #-}
5
3
{-# LANGUAGE FlexibleContexts #-}
6
4
{-# LANGUAGE FlexibleInstances #-}
7
- {-# LANGUAGE LambdaCase #-}
8
5
{-# LANGUAGE MultiParamTypeClasses #-}
9
- {-# LANGUAGE TypeSynonymInstances #-}
10
6
{-# LANGUAGE ViewPatterns #-}
11
7
12
8
module Ide.Plugin.Tactic.Tactics
@@ -284,4 +280,3 @@ overAlgebraicTerms =
284
280
285
281
allNames :: Judgement -> [OccName ]
286
282
allNames = M. keys . jHypothesis
287
-
Original file line number Diff line number Diff line change 4
4
{-# LANGUAGE TypeApplications #-}
5
5
{-# LANGUAGE DeriveFunctor #-}
6
6
{-# LANGUAGE DeriveGeneric #-}
7
- {-# LANGUAGE DerivingStrategies #-}
8
7
{-# LANGUAGE FlexibleInstances #-}
9
8
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
10
9
{-# LANGUAGE MultiParamTypeClasses #-}
11
- {-# LANGUAGE TypeSynonymInstances #-}
12
10
{-# OPTIONS_GHC -fno-warn-orphans #-}
13
11
14
12
module Ide.Plugin.Tactic.Types
Original file line number Diff line number Diff line change 1
1
-- Copyright (c) 2019 The DAML Authors. All rights reserved.
2
2
-- SPDX-License-Identifier: Apache-2.0
3
3
{-# LANGUAGE CPP #-} -- To get precise GHC version
4
- {-# LANGUAGE TemplateHaskell #-}
5
4
{-# 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 #-}
9
5
{-# LANGUAGE OverloadedStrings #-}
10
6
{-# LANGUAGE RecordWildCards #-}
11
7
{-# LANGUAGE ScopedTypeVariables #-}
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE DisambiguateRecordFields #-}
1
2
{-# LANGUAGE NamedFieldPuns #-}
2
3
{-# LANGUAGE OverloadedStrings #-}
3
- {-# LANGUAGE RecordWildCards #-}
4
4
{-# LANGUAGE ViewPatterns #-}
5
5
6
6
module HaddockComments
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE NamedFieldPuns #-}
2
1
{-# LANGUAGE OverloadedStrings #-}
3
2
{-# LANGUAGE ScopedTypeVariables #-}
4
3
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE NamedFieldPuns #-}
2
1
{-# LANGUAGE OverloadedStrings #-}
3
2
{-# LANGUAGE ScopedTypeVariables #-}
4
3
{-# LANGUAGE ViewPatterns #-}
You can’t perform that action at this time.
0 commit comments