Add closeDoc
[opengl.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.Compat
50                        Language.Haskell.LSP.Test.Decoding
51                        Language.Haskell.LSP.Test.Exceptions
52                        Language.Haskell.LSP.Test.Files
53                        Language.Haskell.LSP.Test.Messages
54                        Language.Haskell.LSP.Test.Parsing
55                        Language.Haskell.LSP.Test.Server
56                        Language.Haskell.LSP.Test.Session
57   ghc-options:         -W
58
59 test-suite tests
60   type:                exitcode-stdio-1.0
61   main-is:             Test.hs
62   hs-source-dirs:      test
63   ghc-options:         -W
64   build-depends:       base >= 4.7 && < 5
65                      , hspec
66                      , lens
67                      , data-default
68                      , haskell-lsp >= 0.4
69                      , haskell-lsp-test
70                      , aeson
71                      , unordered-containers
72                      , text
73   default-language:    Haskell2010
74
75 executable lsp-test-example
76   hs-source-dirs:      example
77   main-is:             Main.hs
78   default-language:    Haskell2010
79   build-depends:       base >= 4.7 && < 5
80                      , haskell-lsp-test