Add notice that this was merged into haskell/lsp
[lsp-test.git] / lsp-test.cabal
1 name:                lsp-test
2 version:             0.10.0.0
3 synopsis:            Functional test framework for LSP servers.
4 description:
5   A test framework for writing tests against
6   <https://microsoft.github.io/language-server-protocol/ Language Server Protocol servers>.
7   @Language.Haskell.LSP.Test@ launches your server as a subprocess and allows you to simulate a session
8   down to the wire, and @Language.Haskell.LSP.Test@ can replay captured sessions from
9   <haskell-lsp https://hackage.haskell.org/package/haskell-lsp>.
10   It's currently used for testing in <https://github.com/haskell/haskell-ide-engine haskell-ide-engine>.
11 homepage:            https://github.com/bubba/lsp-test#readme
12 license:             BSD3
13 license-file:        LICENSE
14 author:              Luke Lau
15 maintainer:          luke_lau@icloud.com
16 bug-reports:         https://github.com/bubba/lsp-test/issues
17 copyright:           2019 Luke Lau
18 category:            Testing
19 build-type:          Simple
20 cabal-version:       2.0
21 extra-source-files:  README.md
22                    , ChangeLog.md
23 tested-with:         GHC == 8.2.2 , GHC == 8.4.2 , GHC == 8.4.3, GHC == 8.6.4, GHC == 8.6.5, GHC == 8.8.1
24
25 source-repository head
26   type:     git
27   location: https://github.com/bubba/lsp-test/
28
29 library
30   hs-source-dirs:      src
31   exposed-modules:     Language.Haskell.LSP.Test
32                      , Language.Haskell.LSP.Test.Replay
33   reexported-modules:  haskell-lsp:Language.Haskell.LSP.Types
34                      , haskell-lsp:Language.Haskell.LSP.Types.Capabilities
35                      , parser-combinators:Control.Applicative.Combinators
36   default-language:    Haskell2010
37   build-depends:       base >= 4.10 && < 5
38                      , haskell-lsp == 0.19.*
39                      , aeson
40                      , aeson-pretty
41                      , ansi-terminal
42                      , async
43                      , bytestring
44                      , conduit
45                      , conduit-parse == 0.2.*
46                      , containers >= 0.5.9
47                      , data-default
48                      , Diff
49                      , directory
50                      , filepath
51                      , lens
52                      , mtl
53                      , parser-combinators >= 1.2
54                      , process >= 1.6
55                      , text
56                      , transformers
57                      , unordered-containers
58   if os(windows)
59     build-depends:     Win32
60   else
61     build-depends:     unix
62   other-modules:       Language.Haskell.LSP.Test.Compat
63                        Language.Haskell.LSP.Test.Decoding
64                        Language.Haskell.LSP.Test.Exceptions
65                        Language.Haskell.LSP.Test.Files
66                        Language.Haskell.LSP.Test.Messages
67                        Language.Haskell.LSP.Test.Parsing
68                        Language.Haskell.LSP.Test.Server
69                        Language.Haskell.LSP.Test.Session
70   ghc-options:         -W
71
72 test-suite tests
73   type:                exitcode-stdio-1.0
74   main-is:             Test.hs
75   hs-source-dirs:      test
76   ghc-options:         -W
77   build-depends:       base >= 4.10 && < 5
78                      , hspec
79                      , lens
80                      , haskell-lsp == 0.19.*
81                      , lsp-test
82                      , data-default
83                      , aeson
84                      , unordered-containers
85                      , text
86   default-language:    Haskell2010