File tree Expand file tree Collapse file tree 8 files changed +28
-66
lines changed
plugins/hls-refactor-plugin Expand file tree Collapse file tree 8 files changed +28
-66
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,30 @@ library
24
24
other-modules : Development.IDE.Plugin.CodeAction.Args
25
25
Development.IDE.Plugin.CodeAction.ExactPrint
26
26
Development.IDE.Plugin.CodeAction.PositionIndexed
27
+ default-extensions :
28
+ BangPatterns
29
+ CPP
30
+ DataKinds
31
+ DeriveGeneric
32
+ DerivingStrategies
33
+ DerivingVia
34
+ DuplicateRecordFields
35
+ ExplicitNamespaces
36
+ FlexibleContexts
37
+ FlexibleInstances
38
+ FunctionalDependencies
39
+ GeneralizedNewtypeDeriving
40
+ LambdaCase
41
+ NamedFieldPuns
42
+ OverloadedStrings
43
+ PatternSynonyms
44
+ RankNTypes
45
+ RecordWildCards
46
+ ScopedTypeVariables
47
+ TupleSections
48
+ TypeApplications
49
+ TypeOperators
50
+ ViewPatterns
27
51
hs-source-dirs : src
28
52
build-depends :
29
53
, aeson
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE CPP #-}
2
- {-# LANGUAGE FlexibleInstances #-}
3
- {-# LANGUAGE PatternSynonyms #-}
4
- {-# LANGUAGE TupleSections #-}
5
- {-# LANGUAGE ViewPatterns #-}
6
-
7
1
-- | This module contains compatibility constructs to write type signatures across
8
2
-- multiple ghc-exactprint versions, accepting that anything more ambitious is
9
3
-- pretty much impossible with the GHC 9.2 redesign of ghc-exactprint
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE CPP #-}
2
- {-# LANGUAGE DerivingVia #-}
3
- {-# LANGUAGE FlexibleInstances #-}
4
- {-# LANGUAGE FunctionalDependencies #-}
5
- {-# LANGUAGE GADTs #-}
6
- {-# LANGUAGE RankNTypes #-}
7
- {-# LANGUAGE TypeFamilies #-}
8
- {-# LANGUAGE LambdaCase #-}
9
- {-# LANGUAGE TupleSections #-}
10
- {-# LANGUAGE ViewPatterns #-}
11
- {-# LANGUAGE ScopedTypeVariables #-}
12
- {-# LANGUAGE RecordWildCards #-}
13
- {-# LANGUAGE TypeApplications #-}
14
- {-# LANGUAGE GeneralizedNewtypeDeriving #-}
15
- {-# LANGUAGE DeriveGeneric #-}
1
+ {-# LANGUAGE TypeFamilies #-}
2
+ {-# LANGUAGE GADTs #-}
16
3
17
4
-- | This module hosts various abstractions and utility functions to work with ghc-exactprint.
18
5
module Development.IDE.GHC.ExactPrint
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
4
- {-# LANGUAGE CPP #-}
5
- {-# LANGUAGE DuplicateRecordFields #-}
6
- {-# LANGUAGE GADTs #-}
7
- {-# LANGUAGE ExplicitNamespaces #-}
8
- {-# LANGUAGE ScopedTypeVariables #-}
9
- {-# LANGUAGE RankNTypes #-}
10
- {-# LANGUAGE LambdaCase #-}
11
- {-# LANGUAGE BangPatterns #-}
12
- {-# LANGUAGE NamedFieldPuns #-}
13
- {-# LANGUAGE TypeApplications #-}
14
- {-# LANGUAGE ViewPatterns #-}
15
- {-# LANGUAGE RecordWildCards #-}
16
- {-# LANGUAGE TypeOperators #-}
17
- {-# LANGUAGE TupleSections #-}
18
- {-# LANGUAGE FlexibleContexts #-}
19
- {-# LANGUAGE OverloadedStrings #-}
20
- {-# LANGUAGE DuplicateRecordFields #-}
21
-
22
4
module Development.IDE.Plugin.CodeAction
23
5
(
24
6
mkExactprintPluginDescriptor ,
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE CPP #-}
2
- {-# LANGUAGE FlexibleInstances #-}
3
- {-# LANGUAGE LambdaCase #-}
4
- {-# LANGUAGE RecordWildCards #-}
5
- {-# LANGUAGE NamedFieldPuns #-}
6
- {-# LANGUAGE DataKinds #-}
7
- {-# LANGUAGE TypeOperators #-}
8
- {-# LANGUAGE TupleSections #-}
9
- {-# LANGUAGE FlexibleContexts #-}
10
-
11
1
module Development.IDE.Plugin.CodeAction.Args
12
2
( CodeActionTitle ,
13
3
CodeActionPreferred ,
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE DerivingStrategies #-}
2
- {-# LANGUAGE GADTs #-}
3
- {-# LANGUAGE OverloadedStrings #-}
4
- {-# LANGUAGE RankNTypes #-}
5
- {-# LANGUAGE CPP #-}
6
- {-# LANGUAGE FlexibleInstances #-}
7
- {-# LANGUAGE ScopedTypeVariables #-}
8
- {-# LANGUAGE LambdaCase #-}
9
- {-# LANGUAGE ViewPatterns #-}
10
- {-# LANGUAGE NamedFieldPuns #-}
11
- {-# LANGUAGE TypeApplications #-}
12
- {-# LANGUAGE RecordWildCards #-}
13
- {-# LANGUAGE FlexibleContexts #-}
14
-
1
+ {-# LANGUAGE TypeFamilies #-}
2
+ {-# LANGUAGE GADTs #-}
15
3
module Development.IDE.Plugin.CodeAction.ExactPrint (
16
4
Rewrite (.. ),
17
5
rewriteToEdit ,
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE RecordWildCards #-}
2
- {-# LANGUAGE TupleSections #-}
3
1
-- | Position indexed streams of characters
4
2
module Development.IDE.Plugin.CodeAction.PositionIndexed
5
3
( PositionIndexed
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE TypeFamilies #-}
2
1
module Development.IDE.Plugin.CodeAction.RuleTypes
3
2
(PackageExports (.. )
4
3
,IdentInfo (.. )
You can’t perform that action at this time.
0 commit comments