d3e9b20c2401bd63f9e282c18407f8ab9cd2598d
[lsp-test.git] / haskell-lsp-test.cabal
1 name:                haskell-lsp-test
2 version:             0.1.0.0
3 synopsis:            Functional test framework for LSP servers.
4 -- description:
5 homepage:            https://github.com/Bubba/haskell-lsp-test#readme
6 license:             BSD3
7 license-file:        LICENSE
8 author:              Luke Lau
9 maintainer:          luke_lau@icloud.com
10 stability:           experimental
11 bug-reports:         https://github.com/Bubba/haskell-lsp-test/issues
12 copyright:           2018 Luke Lau
13 category:            Testing
14 build-type:          Simple
15 cabal-version:       >=1.10
16 extra-source-files:  README.md
17
18 library
19   hs-source-dirs:      src
20   exposed-modules:     Language.Haskell.LSP.Test
21                      , Language.Haskell.LSP.Test.Replay
22   reexported-modules:  haskell-lsp:Language.Haskell.LSP.Types
23                      , haskell-lsp:Language.Haskell.LSP.Types.Capabilities
24                      , parser-combinators:Control.Applicative.Combinators
25   default-language:    Haskell2010
26   build-depends:       base >= 4.7 && < 5
27                      , haskell-lsp >= 0.4
28                      , aeson
29                      , ansi-terminal
30                      , bytestring
31                      , conduit
32                      , conduit-parse
33                      , containers
34                      , data-default
35                      , directory
36                      , filepath
37                      , lens
38                      , mtl
39                      , parser-combinators
40                      , process
41                      , text
42                      , transformers
43                      , unordered-containers
44                      , yi-rope
45   if os(windows)
46     build-depends:     Win32
47   else
48     build-depends:     unix
49   other-modules:       Language.Haskell.LSP.Test.Capabilities
50                        Language.Haskell.LSP.Test.Compat
51                        Language.Haskell.LSP.Test.Decoding
52                        Language.Haskell.LSP.Test.Exceptions
53                        Language.Haskell.LSP.Test.Files
54                        Language.Haskell.LSP.Test.Messages
55                        Language.Haskell.LSP.Test.Parsing
56                        Language.Haskell.LSP.Test.Server
57                        Language.Haskell.LSP.Test.Session
58   ghc-options:         -W
59
60 test-suite tests
61   type:                exitcode-stdio-1.0
62   main-is:             Test.hs
63   hs-source-dirs:      test
64   ghc-options:         -W
65   build-depends:       base >= 4.7 && < 5
66                      , hspec
67                      , lens
68                      , data-default
69                      , haskell-lsp >= 0.4
70                      , haskell-lsp-test
71                      , aeson
72                      , unordered-containers
73                      , text
74   default-language:    Haskell2010
75
76 executable lsp-test-example
77   hs-source-dirs:      example
78   main-is:             Main.hs
79   default-language:    Haskell2010
80   build-depends:       base >= 4.7 && < 5
81                      , haskell-lsp-test