packages feed

hls-haddock-comments-plugin 1.0.1.0 → 1.1.0.0

raw patch · 3 files changed

+20/−8 lines, 3 filesdep +hls-refactor-plugindep ~ghcidedep ~hls-plugin-apidep ~hls-test-utilsnew-uploader

Dependencies added: hls-refactor-plugin

Dependency ranges changed: ghcide, hls-plugin-api, hls-test-utils

Files

hls-haddock-comments-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               hls-haddock-comments-plugin-version:            1.0.1.0+version:            1.1.0.0 synopsis:           Haddock comments plugin for Haskell Language Server description:   Please see the README on GitHub at <https://github.com/haskell/haskell-language-server>@@ -18,6 +18,10 @@   test/testdata/*.hs  library+  if impl(ghc >= 9.2)+    buildable: False+  else+    buildable: True   exposed-modules:    Ide.Plugin.HaddockComments   hs-source-dirs:     src   ghc-options:@@ -28,9 +32,10 @@     , base                  >=4.12 && <5     , containers     , ghc-    , ghc-exactprint-    , ghcide                ^>=1.6-    , hls-plugin-api        ^>=1.3+    , ghc-exactprint        < 1+    , ghcide                ^>=1.8+    , hls-plugin-api        ^>=1.5+    , hls-refactor-plugin     , lsp-types     , text     , unordered-containers@@ -41,6 +46,10 @@     TypeOperators  test-suite tests+  if impl(ghc >= 9.2)+    buildable: False+  else+    buildable: True   type:             exitcode-stdio-1.0   default-language: Haskell2010   hs-source-dirs:   test@@ -50,5 +59,5 @@     , base     , filepath     , hls-haddock-comments-plugin-    , hls-test-utils               ^>=1.2+    , hls-test-utils               ^>=1.2 || ^>=1.3 || ^>= 1.4     , text
src/Ide/Plugin/HaddockComments.hs view
@@ -15,7 +15,10 @@ import qualified Data.Text                             as T import           Development.IDE                       hiding (pluginHandlers) import           Development.IDE.GHC.Compat+import           Development.IDE.Plugin.CodeAction+import           Development.IDE.GHC.Compat.ExactPrint import           Development.IDE.GHC.ExactPrint        (GetAnnotatedParsedSource (..))+import qualified Development.IDE.GHC.ExactPrint                   as E import           Ide.Types import           Language.Haskell.GHC.ExactPrint import           Language.Haskell.GHC.ExactPrint.Types hiding (GhcPs)@@ -23,8 +26,8 @@ import           Language.LSP.Types  ------------------------------------------------------------------------------descriptor :: PluginId -> PluginDescriptor IdeState-descriptor plId =+descriptor :: Recorder (WithPriority E.Log) -> PluginId -> PluginDescriptor IdeState+descriptor recorder plId = mkExactprintPluginDescriptor recorder $   (defaultPluginDescriptor plId)     { pluginHandlers = mkPluginHandler STextDocumentCodeAction codeActionProvider     }
test/Main.hs view
@@ -19,7 +19,7 @@ main = defaultTestRunner tests  haddockCommentsPlugin :: PluginDescriptor IdeState-haddockCommentsPlugin = HaddockComments.descriptor "haddockComments"+haddockCommentsPlugin = HaddockComments.descriptor mempty "haddockComments"  tests :: TestTree tests =