X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=haskell-lsp-test.cabal;h=7deb60eb507226b149236d15644ae1df2225c186;hb=ae334dce13ab47fd20b976a17b1f296e082c7531;hp=cc2eb6f37a3f99b31dc8bb3cb874d907d8225f64;hpb=88c70a40654c7152fb50b2a4e171fbdc00324f51;p=lsp-test.git diff --git a/haskell-lsp-test.cabal b/haskell-lsp-test.cabal index cc2eb6f..7deb60e 100644 --- a/haskell-lsp-test.cabal +++ b/haskell-lsp-test.cabal @@ -10,18 +10,51 @@ maintainer: luke_lau@icloud.com copyright: 2018 Luke Lau category: Testing build-type: Simple -cabal-version: >=1.10 +cabal-version: >=2.0 extra-source-files: README.md library - hs-source-dirs: src + hs-source-dirs: lib exposed-modules: Language.Haskell.LSP.Test , Language.Haskell.LSP.Test.Replay + , Language.Haskell.LSP.Test.Machine default-language: Haskell2010 build-depends: base >= 4.7 && < 5 , haskell-lsp-types - , haskell-lsp + , haskell-lsp >= 0.3 + , haskell-lsp-test-internal + , aeson + , bytestring + , containers + , data-default + , directory + , filepath + , lens + , parser-combinators + , text + , unordered-containers + , yi-rope + + ghc-options: -W + +library haskell-lsp-test-internal + hs-source-dirs: src + default-language: Haskell2010 + exposed-modules: Language.Haskell.LSP.Test.Compat + Language.Haskell.LSP.Test.Decoding + Language.Haskell.LSP.Test.Exceptions + Language.Haskell.LSP.Test.Files + Language.Haskell.LSP.Test.Messages + Language.Haskell.LSP.Test.Parsing + Language.Haskell.LSP.Test.Script + Language.Haskell.LSP.Test.Server + Language.Haskell.LSP.Test.Session + build-depends: base + , haskell-lsp-types + , haskell-lsp >= 0.3 , aeson + , ansi-terminal + , async , bytestring , conduit , conduit-parse @@ -30,22 +63,38 @@ library , directory , filepath , lens + , mtl + , scientific , parser-combinators , process , text , transformers , unordered-containers + , yi-rope if os(windows) - build-depends: win32 + build-depends: Win32 else build-depends: unix - other-modules: Language.Haskell.LSP.Test.Compat - Language.Haskell.LSP.Test.Decoding - Language.Haskell.LSP.Test.Files - Language.Haskell.LSP.Test.Parsing - Language.Haskell.LSP.Test.Messages ghc-options: -W + +executable lsp-test + hs-source-dirs: lsp-test + main-is: Main.hs + default-language: Haskell2010 + build-depends: base >= 4.7 && < 5 + , haskell-lsp-types + , haskell-lsp >= 0.3 + , haskell-lsp-test-internal + , haskell-lsp-test + , aeson + , bytestring + , directory + , filepath + , text + , unordered-containers + , scientific + test-suite tests type: exitcode-stdio-1.0 main-is: Test.hs @@ -54,15 +103,21 @@ test-suite tests build-depends: base >= 4.7 && < 5 , hspec , lens + , data-default , directory , haskell-lsp-test + , haskell-lsp-test-internal , haskell-lsp + , haskell-lsp-types , conduit , conduit-parse + , aeson + , unordered-containers + , text other-modules: ParsingTests default-language: Haskell2010 -executable example +executable lsp-test-example hs-source-dirs: example main-is: Main.hs default-language: Haskell2010