X-Git-Url: http://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=lsp-test.cabal;fp=lsp-test.cabal;h=df4833d37ec02b56ffa87bce621b1f946d69d89c;hp=0000000000000000000000000000000000000000;hb=bf94a6e6874dc58734aa56391ce058cba870dc25;hpb=254d73aefddf226b1515eef9f43d61ba7a443791 diff --git a/lsp-test.cabal b/lsp-test.cabal new file mode 100644 index 0000000..df4833d --- /dev/null +++ b/lsp-test.cabal @@ -0,0 +1,83 @@ +name: lsp-test +version: 0.1.0.0 +synopsis: Functional test framework for LSP servers. +-- description: +homepage: https://github.com/Bubba/haskell-lsp-test#readme +license: BSD3 +license-file: LICENSE +author: Luke Lau +maintainer: luke_lau@icloud.com +stability: experimental +bug-reports: https://github.com/Bubba/haskell-lsp-test/issues +copyright: 2018 Luke Lau +category: Testing +build-type: Simple +cabal-version: >=1.10 +extra-source-files: README.md + +library + hs-source-dirs: src + exposed-modules: Language.Haskell.LSP.Test + , Language.Haskell.LSP.Test.Capabilities + , Language.Haskell.LSP.Test.Replay + reexported-modules: haskell-lsp:Language.Haskell.LSP.Types + , haskell-lsp:Language.Haskell.LSP.Types.Capabilities + , parser-combinators:Control.Applicative.Combinators + default-language: Haskell2010 + build-depends: base >= 4.7 && < 5 + , haskell-lsp >= 0.4 + , aeson + , aeson-pretty + , ansi-terminal + , bytestring + , conduit + , conduit-parse + , containers + , data-default + , Diff + , directory + , filepath + , lens + , mtl + , parser-combinators + , process + , text + , transformers + , unordered-containers + , yi-rope + if os(windows) + build-depends: Win32 + else + build-depends: unix + other-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.Server + Language.Haskell.LSP.Test.Session + ghc-options: -W + +test-suite tests + type: exitcode-stdio-1.0 + main-is: Test.hs + hs-source-dirs: test + ghc-options: -W + build-depends: base >= 4.7 && < 5 + , hspec + , lens + , data-default + , haskell-lsp >= 0.4 + , lsp-test + , aeson + , unordered-containers + , text + default-language: Haskell2010 + +executable lsp-test-example + hs-source-dirs: example + main-is: Main.hs + default-language: Haskell2010 + build-depends: base >= 4.7 && < 5 + , lsp-test