Skip to content

Commit 4d044c7

Browse files
committed
Add default extensions
1 parent d2e83d8 commit 4d044c7

File tree

8 files changed

+28
-66
lines changed

8 files changed

+28
-66
lines changed

plugins/hls-refactor-plugin/hls-refactor-plugin.cabal

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,30 @@ library
2424
other-modules: Development.IDE.Plugin.CodeAction.Args
2525
Development.IDE.Plugin.CodeAction.ExactPrint
2626
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
2751
hs-source-dirs: src
2852
build-depends:
2953
, aeson

plugins/hls-refactor-plugin/src/Development/IDE/GHC/Compat/ExactPrint.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE FlexibleInstances #-}
3-
{-# LANGUAGE PatternSynonyms #-}
4-
{-# LANGUAGE TupleSections #-}
5-
{-# LANGUAGE ViewPatterns #-}
6-
71
-- | This module contains compatibility constructs to write type signatures across
82
-- multiple ghc-exactprint versions, accepting that anything more ambitious is
93
-- pretty much impossible with the GHC 9.2 redesign of ghc-exactprint

plugins/hls-refactor-plugin/src/Development/IDE/GHC/ExactPrint.hs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
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 #-}
163

174
-- | This module hosts various abstractions and utility functions to work with ghc-exactprint.
185
module Development.IDE.GHC.ExactPrint

plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
11
-- Copyright (c) 2019 The DAML Authors. All rights reserved.
22
-- SPDX-License-Identifier: Apache-2.0
33

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-
224
module Development.IDE.Plugin.CodeAction
235
(
246
mkExactprintPluginDescriptor,

plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction/Args.hs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
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-
111
module Development.IDE.Plugin.CodeAction.Args
122
( CodeActionTitle,
133
CodeActionPreferred,

plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction/ExactPrint.hs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
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 #-}
153
module Development.IDE.Plugin.CodeAction.ExactPrint (
164
Rewrite (..),
175
rewriteToEdit,

plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction/PositionIndexed.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE RecordWildCards #-}
2-
{-# LANGUAGE TupleSections #-}
31
-- | Position indexed streams of characters
42
module Development.IDE.Plugin.CodeAction.PositionIndexed
53
( PositionIndexed

plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction/RuleTypes.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE TypeFamilies #-}
21
module Development.IDE.Plugin.CodeAction.RuleTypes
32
(PackageExports(..)
43
,IdentInfo(..)

0 commit comments

Comments
 (0)