From 27caea44bab8c31b510a3e7bda08108776c72e9e Mon Sep 17 00:00:00 2001 From: Jiri Lojda Date: Mon, 13 Nov 2023 21:40:55 +0100 Subject: [PATCH] Require focus >= 1.0.3.2 to fix 9.8 build for ghcide and hls-graph --- ghcide/ghcide.cabal | 838 +++++++++++++++++++------------------- hls-graph/hls-graph.cabal | 92 +++-- 2 files changed, 468 insertions(+), 462 deletions(-) diff --git a/ghcide/ghcide.cabal b/ghcide/ghcide.cabal index c4faae618a..c0df96e8b3 100644 --- a/ghcide/ghcide.cabal +++ b/ghcide/ghcide.cabal @@ -9,447 +9,451 @@ author: Digital Asset and Ghcide contributors maintainer: Ghcide contributors copyright: Digital Asset and Ghcide contributors 2018-2020 synopsis: The core of an IDE -description: - A library for building Haskell IDE's on top of the GHC API. -homepage: https://github.com/haskell/haskell-language-server/tree/master/ghcide#readme +description: A library for building Haskell IDE's on top of the GHC API. +homepage: + https://github.com/haskell/haskell-language-server/tree/master/ghcide#readme + bug-reports: https://github.com/haskell/haskell-language-server/issues -tested-with: GHC == 9.0.2 || == 9.2.5 -extra-source-files: README.md CHANGELOG.md - test/data/**/*.project - test/data/**/*.cabal - test/data/**/*.yaml - test/data/**/*.hs - test/data/**/*.hs-boot +tested-with: GHC ==9.0.2 || ==9.2.5 +extra-source-files: + CHANGELOG.md + README.md + test/data/**/*.cabal + test/data/**/*.hs + test/data/**/*.hs-boot + test/data/**/*.project + test/data/**/*.yaml source-repository head - type: git - location: https://github.com/haskell/haskell-language-server.git + type: git + location: https://github.com/haskell/haskell-language-server.git flag ghc-patched-unboxed-bytecode - description: The GHC version we link against supports unboxed sums and tuples in bytecode - default: False - manual: True + description: + The GHC version we link against supports unboxed sums and tuples in bytecode + + default: False + manual: True flag ekg - description: Enable EKG monitoring of the build graph and other metrics on port 8999 - default: False - manual: True + description: + Enable EKG monitoring of the build graph and other metrics on port 8999 + + default: False + manual: True flag pedantic - description: Enable -Werror - default: False - manual: True + description: Enable -Werror + default: False + manual: True library - default-language: Haskell2010 - build-depends: - aeson, - array, - async, - base == 4.*, - binary, - bytestring, - case-insensitive, - co-log-core, - containers, - data-default, - deepseq, - directory, - dependent-map, - dependent-sum, - dlist, - exceptions, - extra >= 1.7.14, - enummapset, - filepath, - fingertree, - focus, - ghc-trace-events, - Glob, - haddock-library >= 1.8 && < 1.12, - hashable, - hie-compat ^>= 0.3.0.0, - hls-plugin-api == 2.4.0.0, - lens, - list-t, - hiedb == 0.4.3.*, - lsp-types ^>= 2.0.2.0, - lsp ^>= 2.2.0.0 , - mtl, - optparse-applicative, - parallel, - prettyprinter-ansi-terminal, - prettyprinter >= 1.7, - random, - regex-tdfa >= 1.3.1.0, - row-types, - text-rope, - safe-exceptions, - hls-graph == 2.4.0.0, - sorted-list, - sqlite-simple, - stm, - stm-containers, - syb, - text, - time, - transformers, - unordered-containers >= 0.2.10.0, - vector, - Diff ^>=0.4.0, - vector, - opentelemetry >=0.6.1, - unliftio >= 0.2.6, - unliftio-core, - ghc-boot-th, - ghc-boot, - ghc >= 9.0, - ghc-check >=0.5.0.8, - ghc-paths, - cryptohash-sha1 >=0.11.100 && <0.12, - hie-bios == 0.12.0, - -- implicit-hie 0.1.3.0 introduced an unexpected behavioral change. - -- https://github.com/Avi-D-coder/implicit-hie/issues/50 - -- to make sure ghcide behaves in a desirable way, we put implicit-hie - -- fake dependency here. - implicit-hie < 0.1.3, - implicit-hie-cradle ^>= 0.3.0.5 || ^>= 0.5, - base16-bytestring >=0.1.1 && <1.1 - if os(windows) - build-depends: - Win32 - else - build-depends: - unix - - default-extensions: - BangPatterns - DeriveFunctor - DeriveGeneric - DeriveFoldable - DeriveTraversable - FlexibleContexts - GeneralizedNewtypeDeriving - LambdaCase - NamedFieldPuns - OverloadedStrings - RecordWildCards - ScopedTypeVariables - StandaloneDeriving - TupleSections - TypeApplications - ViewPatterns - DataKinds - TypeOperators - KindSignatures - - hs-source-dirs: - src - session-loader - exposed-modules: - Control.Concurrent.Strict - Generics.SYB.GHC - Development.IDE - Development.IDE.Main - Development.IDE.Core.Actions - Development.IDE.Main.HeapStats - Development.IDE.Core.Debouncer - Development.IDE.Core.FileStore - Development.IDE.Core.FileUtils - Development.IDE.Core.IdeConfiguration - Development.IDE.Core.OfInterest - Development.IDE.Core.PluginUtils - Development.IDE.Core.PositionMapping - Development.IDE.Core.Preprocessor - Development.IDE.Core.ProgressReporting - Development.IDE.Core.Rules - Development.IDE.Core.RuleTypes - Development.IDE.Core.Service - Development.IDE.Core.Shake - Development.IDE.Core.Tracing - Development.IDE.Core.UseStale - Development.IDE.GHC.Compat - Development.IDE.GHC.Compat.Core - Development.IDE.GHC.Compat.Env - Development.IDE.GHC.Compat.Iface - Development.IDE.GHC.Compat.Logger - Development.IDE.GHC.Compat.Outputable - Development.IDE.GHC.Compat.Parser - Development.IDE.GHC.Compat.Plugins - Development.IDE.GHC.Compat.Units - Development.IDE.GHC.Compat.Util - Development.IDE.Core.Compile - Development.IDE.GHC.CoreFile - Development.IDE.GHC.Error - Development.IDE.GHC.Orphans - Development.IDE.GHC.Util - Development.IDE.Import.DependencyInformation - Development.IDE.Import.FindImports - Development.IDE.Monitoring.EKG - Development.IDE.LSP.HoverDefinition - Development.IDE.LSP.LanguageServer - Development.IDE.LSP.Notifications - Development.IDE.LSP.Outline - Development.IDE.LSP.Server - Development.IDE.Session - Development.IDE.Session.Diagnostics - Development.IDE.Spans.Common - Development.IDE.Spans.Documentation - Development.IDE.Spans.AtPoint - Development.IDE.Spans.LocalBindings - Development.IDE.Spans.Pragmas - Development.IDE.Types.Diagnostics - Development.IDE.Types.Exports - Development.IDE.Types.HscEnvEq - Development.IDE.Types.KnownTargets - Development.IDE.Types.Location - Development.IDE.Types.Monitoring - Development.IDE.Monitoring.OpenTelemetry - Development.IDE.Types.Options - Development.IDE.Types.Shake - Development.IDE.Plugin - Development.IDE.Plugin.Completions - Development.IDE.Plugin.Completions.Types - Development.IDE.Plugin.HLS - Development.IDE.Plugin.HLS.GhcIde - Development.IDE.Plugin.Test - Development.IDE.Plugin.TypeLenses - Text.Fuzzy.Parallel - - other-modules: - Development.IDE.Core.FileExists - Development.IDE.GHC.CPP - Development.IDE.GHC.Warnings - Development.IDE.Plugin.Completions.Logic - Development.IDE.Session.VersionCheck - Development.IDE.Types.Action + default-language: Haskell2010 + build-depends: + , aeson + , array + , async + , base >=4 && <5 + , base16-bytestring >=0.1.1 && <1.1 + , binary + , bytestring + , case-insensitive + , co-log-core + , containers + , cryptohash-sha1 >=0.11.100 && <0.12 + , data-default + , deepseq + , dependent-map + , dependent-sum + , Diff ^>=0.4.0 + , directory + , dlist + , enummapset + , exceptions + , extra >=1.7.14 + , filepath + , fingertree + , focus >=1.0.3.2 + , ghc >=9.0 + , ghc-boot + , ghc-boot-th + , ghc-check >=0.5.0.8 + , ghc-paths + , ghc-trace-events + , Glob + , haddock-library >=1.8 && <1.12 + , hashable + , hie-bios ==0.12.0 + , hie-compat ^>=0.3.0.0 + , hiedb >=0.4.3 && <0.4.4 + , hls-graph ==2.4.0.0 + , hls-plugin-api ==2.4.0.0 + , implicit-hie <0.1.3 + , implicit-hie-cradle ^>=0.3.0.5 || ^>=0.5 + , lens + , list-t + , lsp ^>=2.2.0.0 + , lsp-types ^>=2.0.2.0 + , mtl + , opentelemetry >=0.6.1 + , optparse-applicative + , parallel + , prettyprinter >=1.7 + , prettyprinter-ansi-terminal + , random + , regex-tdfa >=1.3.1.0 + , row-types + , safe-exceptions + , sorted-list + , sqlite-simple + , stm + , stm-containers + , syb + , text + , text-rope + , time + , transformers + , unliftio >=0.2.6 + , unliftio-core + , unordered-containers >=0.2.10.0 + , vector + + -- implicit-hie 0.1.3.0 introduced an unexpected behavioral change. + -- https://github.com/Avi-D-coder/implicit-hie/issues/50 + -- to make sure ghcide behaves in a desirable way, we put implicit-hie + -- fake dependency here. + if os(windows) + build-depends: Win32 + + else + build-depends: unix + + default-extensions: + BangPatterns + DataKinds + DeriveFoldable + DeriveFunctor + DeriveGeneric + DeriveTraversable + FlexibleContexts + GeneralizedNewtypeDeriving + KindSignatures + LambdaCase + NamedFieldPuns + OverloadedStrings + RecordWildCards + ScopedTypeVariables + StandaloneDeriving + TupleSections + TypeApplications + TypeOperators + ViewPatterns + + hs-source-dirs: src session-loader + exposed-modules: + Control.Concurrent.Strict + Development.IDE + Development.IDE.Core.Actions + Development.IDE.Core.Compile + Development.IDE.Core.Debouncer + Development.IDE.Core.FileStore + Development.IDE.Core.FileUtils + Development.IDE.Core.IdeConfiguration + Development.IDE.Core.OfInterest + Development.IDE.Core.PluginUtils + Development.IDE.Core.PositionMapping + Development.IDE.Core.Preprocessor + Development.IDE.Core.ProgressReporting + Development.IDE.Core.Rules + Development.IDE.Core.RuleTypes + Development.IDE.Core.Service + Development.IDE.Core.Shake + Development.IDE.Core.Tracing + Development.IDE.Core.UseStale + Development.IDE.GHC.Compat + Development.IDE.GHC.Compat.Core + Development.IDE.GHC.Compat.Env + Development.IDE.GHC.Compat.Iface + Development.IDE.GHC.Compat.Logger + Development.IDE.GHC.Compat.Outputable + Development.IDE.GHC.Compat.Parser + Development.IDE.GHC.Compat.Plugins + Development.IDE.GHC.Compat.Units + Development.IDE.GHC.Compat.Util + Development.IDE.GHC.CoreFile + Development.IDE.GHC.Error + Development.IDE.GHC.Orphans + Development.IDE.GHC.Util + Development.IDE.Import.DependencyInformation + Development.IDE.Import.FindImports + Development.IDE.LSP.HoverDefinition + Development.IDE.LSP.LanguageServer + Development.IDE.LSP.Notifications + Development.IDE.LSP.Outline + Development.IDE.LSP.Server + Development.IDE.Main + Development.IDE.Main.HeapStats + Development.IDE.Monitoring.EKG + Development.IDE.Monitoring.OpenTelemetry + Development.IDE.Plugin + Development.IDE.Plugin.Completions + Development.IDE.Plugin.Completions.Types + Development.IDE.Plugin.HLS + Development.IDE.Plugin.HLS.GhcIde + Development.IDE.Plugin.Test + Development.IDE.Plugin.TypeLenses + Development.IDE.Session + Development.IDE.Session.Diagnostics + Development.IDE.Spans.AtPoint + Development.IDE.Spans.Common + Development.IDE.Spans.Documentation + Development.IDE.Spans.LocalBindings + Development.IDE.Spans.Pragmas + Development.IDE.Types.Diagnostics + Development.IDE.Types.Exports + Development.IDE.Types.HscEnvEq + Development.IDE.Types.KnownTargets + Development.IDE.Types.Location + Development.IDE.Types.Monitoring + Development.IDE.Types.Options + Development.IDE.Types.Shake + Generics.SYB.GHC + Text.Fuzzy.Parallel + other-modules: + Development.IDE.Core.FileExists + Development.IDE.GHC.CPP + Development.IDE.GHC.Warnings + Development.IDE.Plugin.Completions.Logic + Development.IDE.Session.VersionCheck + Development.IDE.Types.Action + + ghc-options: + -Wall -Wincomplete-uni-patterns -Wno-unticked-promoted-constructors + -Wunused-packages -fno-ignore-asserts + + if flag(ghc-patched-unboxed-bytecode) + cpp-options: -DGHC_PATCHED_UNBOXED_BYTECODE + + if flag(pedantic) + -- We eventually want to build with Werror fully, but we haven't + -- finished purging the warnings, so some are set to not be errors + -- for now ghc-options: - -Wall - -Wincomplete-uni-patterns - -Wno-unticked-promoted-constructors - -Wunused-packages - -fno-ignore-asserts - - if flag(ghc-patched-unboxed-bytecode) - cpp-options: -DGHC_PATCHED_UNBOXED_BYTECODE - - if flag(pedantic) - -- We eventually want to build with Werror fully, but we haven't - -- finished purging the warnings, so some are set to not be errors - -- for now - ghc-options: -Werror - -Wwarn=unused-packages - -Wwarn=unrecognised-pragmas - -Wwarn=dodgy-imports - -Wwarn=missing-signatures - -Wwarn=duplicate-exports - -Wwarn=dodgy-exports - -Wwarn=incomplete-patterns - -Wwarn=overlapping-patterns - -Wwarn=incomplete-record-updates - - -- ambiguous-fields is only understood by GHC >= 9.2, so we only disable it - -- then. The above comment goes for here too -- this should be understood to - -- be temporary until we can remove these warnings. - if impl(ghc >= 9.2) && flag(pedantic) - ghc-options: -Wwarn=ambiguous-fields - - if flag(ekg) - build-depends: - ekg-wai, - ekg-core, - cpp-options: -DMONITORING_EKG + -Werror -Wwarn=unused-packages -Wwarn=unrecognised-pragmas + -Wwarn=dodgy-imports -Wwarn=missing-signatures + -Wwarn=duplicate-exports -Wwarn=dodgy-exports + -Wwarn=incomplete-patterns -Wwarn=overlapping-patterns + -Wwarn=incomplete-record-updates + + -- ambiguous-fields is only understood by GHC >= 9.2, so we only disable it + -- then. The above comment goes for here too -- this should be understood to + -- be temporary until we can remove these warnings. + if (impl(ghc >=9.2) && flag(pedantic)) + ghc-options: -Wwarn=ambiguous-fields + + if flag(ekg) + build-depends: + , ekg-core + , ekg-wai + + cpp-options: -DMONITORING_EKG flag test-exe - description: Build the ghcide-test-preprocessor executable - default: True + description: Build the ghcide-test-preprocessor executable + default: True executable ghcide-test-preprocessor - default-language: Haskell2010 - hs-source-dirs: test/preprocessor - ghc-options: -Wall -Wno-name-shadowing - main-is: Main.hs - build-depends: - base == 4.* + default-language: Haskell2010 + hs-source-dirs: test/preprocessor + ghc-options: -Wall -Wno-name-shadowing + main-is: Main.hs + build-depends: base >=4 && <5 - if !flag(test-exe) - buildable: False + if !flag(test-exe) + buildable: False flag executable - description: Build the ghcide executable - default: True + description: Build the ghcide executable + default: True executable ghcide - default-language: Haskell2010 - hs-source-dirs: exe - ghc-options: - -threaded - -Wall - -Wincomplete-uni-patterns - -Wno-name-shadowing - -- allow user RTS overrides - -rtsopts - -- disable idle GC - -- increase nursery size - -- Enable collection of heap statistics - "-with-rtsopts=-I0 -A128M -T" - main-is: Main.hs + default-language: Haskell2010 + hs-source-dirs: exe + ghc-options: + -threaded -Wall -Wincomplete-uni-patterns -Wno-name-shadowing + -rtsopts "-with-rtsopts=-I0 -A128M -T" + + -- allow user RTS overrides + -- disable idle GC + -- increase nursery size + -- Enable collection of heap statistics + main-is: Main.hs + build-depends: + , base >=4 && <5 + , data-default + , extra + , ghcide + , gitrev + , hls-plugin-api + , lsp + , lsp-types + , optparse-applicative + + other-modules: + Arguments + Paths_ghcide + + autogen-modules: Paths_ghcide + default-extensions: + BangPatterns + DeriveFunctor + DeriveGeneric + FlexibleContexts + GeneralizedNewtypeDeriving + LambdaCase + NamedFieldPuns + OverloadedStrings + RecordWildCards + ScopedTypeVariables + StandaloneDeriving + TupleSections + TypeApplications + ViewPatterns + + if !flag(executable) + buildable: False + + if flag(ekg) build-depends: - base == 4.*, - data-default, - extra, - gitrev, - lsp, - lsp-types, - hls-plugin-api, - ghcide, - optparse-applicative, - other-modules: - Arguments - Paths_ghcide - autogen-modules: - Paths_ghcide - - default-extensions: - BangPatterns - DeriveFunctor - DeriveGeneric - FlexibleContexts - GeneralizedNewtypeDeriving - LambdaCase - NamedFieldPuns - OverloadedStrings - RecordWildCards - ScopedTypeVariables - StandaloneDeriving - TupleSections - TypeApplications - ViewPatterns - - if !flag(executable) - buildable: False - if flag(ekg) - build-depends: - ekg-wai, - ekg-core, - cpp-options: -DMONITORING_EKG - if impl(ghc >= 9) - ghc-options: -Wunused-packages + , ekg-core + , ekg-wai + cpp-options: -DMONITORING_EKG + + if impl(ghc >=9) + ghc-options: -Wunused-packages test-suite ghcide-tests - type: exitcode-stdio-1.0 - default-language: Haskell2010 - build-tool-depends: - ghcide:ghcide, - ghcide:ghcide-test-preprocessor, - implicit-hie:gen-hie + type: exitcode-stdio-1.0 + default-language: Haskell2010 + build-tool-depends: + , ghcide:ghcide + , ghcide:ghcide-test-preprocessor + , implicit-hie:gen-hie + + build-depends: + , aeson + , async + , base + , containers + , data-default + , directory + , extra + , filepath + , fuzzy + , ghc + , ghcide + , hls-plugin-api + , lens + , list-t + , lsp + , lsp-test ^>=0.16.0.0 + , lsp-types + , monoid-subclasses + , mtl + , network-uri + , QuickCheck + , random + , regex-tdfa ^>=1.3.1 + , row-types + , shake + , sqlite-simple + , stm + , stm-containers + , tasty + , tasty-expected-failure + , tasty-hunit >=0.10 + , tasty-quickcheck + , tasty-rerun + , text + , text-rope + , unordered-containers + + -------------------------------------------------------------- + -- The MIN_VERSION_ghc macro relies on MIN_VERSION pragmas + -- which require depending on ghc. So the tests need to depend + -- on ghc if they need to use MIN_VERSION_ghc. Maybe a + -- better solution can be found, but this is a quick solution + -- which works for now. + -------------------------------------------------------------- + if impl(ghc <9.2) build-depends: - aeson, - async, - base, - containers, - data-default, - directory, - extra, - filepath, - fuzzy, - -------------------------------------------------------------- - -- The MIN_VERSION_ghc macro relies on MIN_VERSION pragmas - -- which require depending on ghc. So the tests need to depend - -- on ghc if they need to use MIN_VERSION_ghc. Maybe a - -- better solution can be found, but this is a quick solution - -- which works for now. - ghc, - -------------------------------------------------------------- - ghcide, - lsp, - lsp-types, - hls-plugin-api, - lens, - list-t, - lsp-test ^>= 0.16.0.0, - mtl, - monoid-subclasses, - network-uri, - QuickCheck, - random, - regex-tdfa ^>= 1.3.1, - shake, - sqlite-simple, - stm, - stm-containers, - tasty, - tasty-expected-failure, - tasty-hunit >= 0.10, - tasty-quickcheck, - tasty-rerun, - text, - text-rope, - unordered-containers, - row-types - if impl(ghc < 9.2) - build-depends: - record-dot-preprocessor, - record-hasfield - if impl(ghc < 9.3) - build-depends: ghc-typelits-knownnat - hs-source-dirs: test/cabal test/exe test/src - ghc-options: -threaded -Wall -Wno-name-shadowing -O0 -Wno-unticked-promoted-constructors -Wunused-packages - main-is: Main.hs - other-modules: - Development.IDE.Test.Runfiles - FuzzySearch - Progress - HieDbRetry - Development.IDE.Test - Development.IDE.Test.Diagnostic - ExceptionTests - -- Tests that have been pulled out of the main file - BootTests - CodeLensTests - CompletionTests - CPPTests - CradleTests - DependentFileTest - DiagnosticTests - FindDefinitionAndHoverTests - HaddockTests - HighlightTests - IfaceTests - InitializeResponseTests - LogType - NonLspCommandLine - OutlineTests - PluginParsedResultTests - PluginSimpleTests - PositionMappingTests - PreprocessorTests - RootUriTests - SafeTests - SymlinkTests - TestUtils - THTests - UnitTests - WatchedFileTests - AsyncTests - ClientSettingsTests - ReferenceTests - GarbageCollectionTests - OpenCloseTest - default-extensions: - BangPatterns - DeriveFunctor - DeriveGeneric - FlexibleContexts - GeneralizedNewtypeDeriving - LambdaCase - NamedFieldPuns - OverloadedStrings - RecordWildCards - ScopedTypeVariables - StandaloneDeriving - TupleSections - TypeApplications - ViewPatterns + , record-dot-preprocessor + , record-hasfield + + if impl(ghc <9.3) + build-depends: ghc-typelits-knownnat + + hs-source-dirs: test/cabal test/exe test/src + ghc-options: + -threaded -Wall -Wno-name-shadowing -O0 + -Wno-unticked-promoted-constructors -Wunused-packages + + main-is: Main.hs + other-modules: + AsyncTests + BootTests + ClientSettingsTests + CodeLensTests + CompletionTests + CPPTests + CradleTests + DependentFileTest + Development.IDE.Test + Development.IDE.Test.Diagnostic + Development.IDE.Test.Runfiles + DiagnosticTests + ExceptionTests + FindDefinitionAndHoverTests + FuzzySearch + GarbageCollectionTests + HaddockTests + HieDbRetry + HighlightTests + IfaceTests + InitializeResponseTests + LogType + NonLspCommandLine + OpenCloseTest + OutlineTests + PluginParsedResultTests + PluginSimpleTests + PositionMappingTests + PreprocessorTests + Progress + ReferenceTests + RootUriTests + SafeTests + SymlinkTests + TestUtils + THTests + UnitTests + WatchedFileTests + + -- Tests that have been pulled out of the main file + default-extensions: + BangPatterns + DeriveFunctor + DeriveGeneric + FlexibleContexts + GeneralizedNewtypeDeriving + LambdaCase + NamedFieldPuns + OverloadedStrings + RecordWildCards + ScopedTypeVariables + StandaloneDeriving + TupleSections + TypeApplications + ViewPatterns diff --git a/hls-graph/hls-graph.cabal b/hls-graph/hls-graph.cabal index 21130e76c5..740baf6227 100644 --- a/hls-graph/hls-graph.cabal +++ b/hls-graph/hls-graph.cabal @@ -1,25 +1,24 @@ -cabal-version: 2.4 -name: hls-graph -version: 2.4.0.0 -synopsis: Haskell Language Server internal graph API +cabal-version: 2.4 +name: hls-graph +version: 2.4.0.0 +synopsis: Haskell Language Server internal graph API description: Please see the README on GitHub at -homepage: https://github.com/haskell/haskell-language-server#readme -bug-reports: https://github.com/haskell/haskell-language-server/issues -license: Apache-2.0 -license-file: LICENSE -author: The Haskell IDE Team -maintainer: The Haskell IDE Team -copyright: The Haskell IDE Team -category: Development -build-type: Simple +homepage: https://github.com/haskell/haskell-language-server#readme +bug-reports: https://github.com/haskell/haskell-language-server/issues +license: Apache-2.0 +license-file: LICENSE +author: The Haskell IDE Team +maintainer: The Haskell IDE Team +copyright: The Haskell IDE Team +category: Development +build-type: Simple data-files: - html/profile.html - html/shake.js + html/profile.html + html/shake.js -extra-source-files: - README.md +extra-source-files: README.md flag pedantic description: Enable -Werror @@ -27,13 +26,13 @@ flag pedantic manual: True flag embed-files - default: False - manual: True + default: False + manual: True description: Embed data files into the shake library flag stm-stats - default: False - manual: True + default: False + manual: True description: Collect STM transaction stats source-repository head @@ -46,25 +45,24 @@ library Development.IDE.Graph Development.IDE.Graph.Classes Development.IDE.Graph.Database - Development.IDE.Graph.Rule - Development.IDE.Graph.KeyMap - Development.IDE.Graph.KeySet Development.IDE.Graph.Internal.Action - Development.IDE.Graph.Internal.Options - Development.IDE.Graph.Internal.Rules Development.IDE.Graph.Internal.Database + Development.IDE.Graph.Internal.Options Development.IDE.Graph.Internal.Paths Development.IDE.Graph.Internal.Profile + Development.IDE.Graph.Internal.Rules Development.IDE.Graph.Internal.Types + Development.IDE.Graph.KeyMap + Development.IDE.Graph.KeySet + Development.IDE.Graph.Rule Paths_hls_graph - autogen-modules: Paths_hls_graph - + autogen-modules: Paths_hls_graph hs-source-dirs: src build-depends: , aeson - , async >= 2.0 - , base >=4.12 && <5 + , async >=2.0 + , base >=4.12 && <5 , bytestring , containers , deepseq @@ -72,7 +70,7 @@ library , exceptions , extra , filepath - , focus + , focus >=1.0.3.2 , hashable , js-dgtable , js-flot @@ -80,24 +78,24 @@ library , list-t , stm , stm-containers + , text , time , transformers , unliftio , unordered-containers - , text if flag(embed-files) - cpp-options: -DFILE_EMBED - build-depends: - file-embed >= 0.0.11, - template-haskell + cpp-options: -DFILE_EMBED + build-depends: + , file-embed >=0.0.11 + , template-haskell + if flag(stm-stats) - cpp-options: -DSTM_STATS + cpp-options: -DSTM_STATS ghc-options: -Wall -Wredundant-constraints -Wno-name-shadowing - -Wno-unticked-promoted-constructors - -Wunused-packages + -Wno-unticked-promoted-constructors -Wunused-packages if flag(pedantic) ghc-options: -Werror @@ -109,10 +107,10 @@ library TypeOperators test-suite tests - type: exitcode-stdio-1.0 - default-language: Haskell2010 - hs-source-dirs: test - main-is: Main.hs + type: exitcode-stdio-1.0 + default-language: Haskell2010 + hs-source-dirs: test + main-is: Main.hs other-modules: ActionSpec DatabaseSpec @@ -120,7 +118,10 @@ test-suite tests RulesSpec Spec - ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts -Wunused-packages + ghc-options: + -threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts + -Wunused-packages + build-depends: , base , containers @@ -137,4 +138,5 @@ test-suite tests , tasty-rerun , text , unordered-containers - build-tool-depends: hspec-discover:hspec-discover -any + + build-tool-depends: hspec-discover:hspec-discover