|
| 1 | +cabal-version: 3.0 |
| 2 | +name: hls-cabal-plugin |
| 3 | +version: 0.1.0.0 |
| 4 | +synopsis: Cabal integration plugin with Haskell Language Server |
| 5 | +description: |
| 6 | + Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme> |
| 7 | + |
| 8 | +homepage: |
| 9 | +license: MIT |
| 10 | +license-file: LICENSE |
| 11 | +author: Fendor |
| 12 | + |
| 13 | +category: Development |
| 14 | +extra-source-files: |
| 15 | + CHANGELOG.md |
| 16 | + test/testdata/*.cabal |
| 17 | + test/testdata/simple-cabal/A.hs |
| 18 | + test/testdata/simple-cabal/cabal.project |
| 19 | + test/testdata/simple-cabal/hie.yaml |
| 20 | + test/testdata/simple-cabal/simple-cabal.cabal |
| 21 | + |
| 22 | +common warnings |
| 23 | + ghc-options: -Wall |
| 24 | + |
| 25 | +library |
| 26 | + import: warnings |
| 27 | + exposed-modules: |
| 28 | + Ide.Plugin.Cabal |
| 29 | + Ide.Plugin.Cabal.Diagnostics |
| 30 | + Ide.Plugin.Cabal.LicenseSuggest |
| 31 | + Ide.Plugin.Cabal.Parse |
| 32 | + |
| 33 | + build-depends: |
| 34 | + , base >=4.12 && <5 |
| 35 | + , bytestring |
| 36 | + -- Ideally, we only want to support a single Cabal version, supporting |
| 37 | + -- older versions is completely pointless since Cabal is backwards compatible, |
| 38 | + -- the latest Cabal version can parse all versions of the Cabal file format. |
| 39 | + -- |
| 40 | + -- However, stack is making this difficult, if we change the version of Cabal, |
| 41 | + -- we essentially need to make sure all other packages in the snapshot have their |
| 42 | + -- Cabal dependency version relaxed. |
| 43 | + -- Most packages have a Hackage revision, but stack won't pick these up (for sensible reasons) |
| 44 | + -- automatically, forcing us to manually update the packages revision id. |
| 45 | + -- This is a lot of work for almost zero benefit, so we just allow more versions here |
| 46 | + -- and we eventually completely drop support for building HLS with stack. |
| 47 | + , Cabal ^>=3.2 || ^>=3.4 || ^>=3.6 || ^>= 3.8 |
| 48 | + , deepseq |
| 49 | + , directory |
| 50 | + , extra >=1.7.4 |
| 51 | + , ghcide ^>= 1.8 |
| 52 | + , hashable |
| 53 | + , hls-plugin-api ^>=1.5 |
| 54 | + , hls-graph ^>=1.8 |
| 55 | + , lsp ^>=1.6.0.0 |
| 56 | + , lsp-types ^>=1.6.0.0 |
| 57 | + , regex-tdfa ^>=1.3.1 |
| 58 | + , stm |
| 59 | + , text |
| 60 | + , unordered-containers >=0.2.10.0 |
| 61 | + |
| 62 | + hs-source-dirs: src |
| 63 | + default-language: Haskell2010 |
| 64 | + |
| 65 | +test-suite tests |
| 66 | + import: warnings |
| 67 | + default-language: Haskell2010 |
| 68 | + type: exitcode-stdio-1.0 |
| 69 | + hs-source-dirs: test |
| 70 | + main-is: Main.hs |
| 71 | + build-depends: |
| 72 | + , base |
| 73 | + , bytestring |
| 74 | + , filepath |
| 75 | + , ghcide |
| 76 | + , hls-cabal-plugin |
| 77 | + , hls-test-utils ^>=1.4 |
| 78 | + , lens |
| 79 | + , lsp-types |
| 80 | + , tasty-hunit |
| 81 | + , text |
0 commit comments