@@ -1550,6 +1550,108 @@ common refactor
1550
1550
build-depends : hls-refactor-plugin == 2.6.0.0
1551
1551
cpp-options : -Dhls_refactor
1552
1552
1553
+ library hls-refactor-plugin
1554
+ import : warnings
1555
+ exposed-modules : Development.IDE.GHC.ExactPrint
1556
+ Development.IDE.GHC.Compat.ExactPrint
1557
+ Development.IDE.Plugin.CodeAction
1558
+ Development.IDE.Plugin.CodeAction.Util
1559
+ Development.IDE.GHC.Dump
1560
+ other-modules : Development.IDE.Plugin.CodeAction.Args
1561
+ Development.IDE.Plugin.CodeAction.ExactPrint
1562
+ Development.IDE.Plugin.CodeAction.PositionIndexed
1563
+ Development.IDE.Plugin.Plugins.AddArgument
1564
+ Development.IDE.Plugin.Plugins.Diagnostic
1565
+ Development.IDE.Plugin.Plugins.FillHole
1566
+ Development.IDE.Plugin.Plugins.FillTypeWildcard
1567
+ Development.IDE.Plugin.Plugins.ImportUtils
1568
+ default-extensions :
1569
+ BangPatterns
1570
+ CPP
1571
+ DataKinds
1572
+ DeriveGeneric
1573
+ DerivingStrategies
1574
+ DerivingVia
1575
+ DuplicateRecordFields
1576
+ ExplicitNamespaces
1577
+ FlexibleContexts
1578
+ FlexibleInstances
1579
+ FunctionalDependencies
1580
+ GeneralizedNewtypeDeriving
1581
+ LambdaCase
1582
+ NamedFieldPuns
1583
+ OverloadedStrings
1584
+ PatternSynonyms
1585
+ RankNTypes
1586
+ RecordWildCards
1587
+ ScopedTypeVariables
1588
+ TupleSections
1589
+ TypeApplications
1590
+ TypeOperators
1591
+ ViewPatterns
1592
+ hs-source-dirs : plugins/hls-refactor-plugin/src
1593
+ build-depends :
1594
+ , base >= 4.12 && < 5
1595
+ , ghc
1596
+ , bytestring
1597
+ , ghc-boot
1598
+ , regex-tdfa
1599
+ , text-rope
1600
+ , ghcide == 2.6.0.0
1601
+ , hls-plugin-api == 2.6.0.0
1602
+ , lsp
1603
+ , text
1604
+ , transformers
1605
+ , unordered-containers
1606
+ , containers
1607
+ , ghc-exactprint < 1 || >= 1.4
1608
+ , extra
1609
+ , retrie
1610
+ , syb
1611
+ , hls-graph
1612
+ , dlist
1613
+ , deepseq
1614
+ , mtl
1615
+ , lens
1616
+ , data-default
1617
+ , time
1618
+ -- FIXME: Only needed to workaround for qualified imports in GHC 9.4
1619
+ , regex-applicative
1620
+ , parser-combinators
1621
+ ghc-options : -Wno-name-shadowing
1622
+ default-language : Haskell2010
1623
+
1624
+ test-suite hls-refactor-plugin-tests
1625
+ import : warnings
1626
+ type : exitcode-stdio-1.0
1627
+ default-language : Haskell2010
1628
+ hs-source-dirs : plugins/hls-refactor-plugin/test
1629
+ main-is : Main.hs
1630
+ other-modules : Test.AddArgument
1631
+ ghc-options : -O0 -threaded -rtsopts -with-rtsopts=-N -Wunused-imports
1632
+ build-depends :
1633
+ , base
1634
+ , filepath
1635
+ , hls-refactor-plugin
1636
+ , hls-test-utils == 2.6.0.0
1637
+ , lens
1638
+ , lsp-types
1639
+ , text
1640
+ , hls-plugin-api
1641
+ , parser-combinators
1642
+ , data-default
1643
+ , extra
1644
+ , ghcide
1645
+ , ghcide-test-utils
1646
+ , shake
1647
+ , hls-plugin-api
1648
+ , lsp-test
1649
+ , directory
1650
+ , regex-tdfa
1651
+ , tasty-hunit
1652
+ , tasty-expected-failure
1653
+ , tasty
1654
+
1553
1655
-----------------------------
1554
1656
-- semantic tokens plugin
1555
1657
-----------------------------
0 commit comments