Bump to 0.9.0.0
[lsp-test.git] / lsp-test.cabal
1 name:                lsp-test
2 version:             0.9.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
54                      , process >= 1.6
55                      , rope-utf16-splay
56                      , text
57                      , transformers
58                      , unordered-containers
59   if os(windows)
60     build-depends:     Win32
61   else
62     build-depends:     unix
63   other-modules:       Language.Haskell.LSP.Test.Compat
64                        Language.Haskell.LSP.Test.Decoding
65                        Language.Haskell.LSP.Test.Exceptions
66                        Language.Haskell.LSP.Test.Files
67                        Language.Haskell.LSP.Test.Messages
68                        Language.Haskell.LSP.Test.Parsing
69                        Language.Haskell.LSP.Test.Server
70                        Language.Haskell.LSP.Test.Session
71   ghc-options:         -W
72
73 test-suite tests
74   type:                exitcode-stdio-1.0
75   main-is:             Test.hs
76   hs-source-dirs:      test
77   ghc-options:         -W
78   build-depends:       base >= 4.10 && < 5
79                      , hspec
80                      , lens
81                      , haskell-lsp == 0.19.*
82                      , lsp-test
83                      , data-default
84                      , aeson
85                      , unordered-containers
86                      , text
87   default-language:    Haskell2010