Try caching windows stack directories
[opengl.git] / lsp-test.cabal
1 name:                lsp-test
2 version:             0.5.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-test 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/haskell-lsp-test#readme
12 license:             BSD3
13 license-file:        LICENSE
14 author:              Luke Lau
15 maintainer:          luke_lau@icloud.com
16 stability:           experimental
17 bug-reports:         https://github.com/Bubba/haskell-lsp-test/issues
18 copyright:           2018 Luke Lau
19 category:            Testing
20 build-type:          Simple
21 cabal-version:       2.0
22 extra-source-files:  README.md
23                    , ChangeLog.md
24 tested-with:         GHC == 8.2.2 , GHC == 8.4.2 , GHC == 8.4.3
25
26 source-repository head
27   type:     git
28   location: https://github.com/Bubba/haskell-lsp-test/
29
30 library
31   hs-source-dirs:      src
32   exposed-modules:     Language.Haskell.LSP.Test
33                      , Language.Haskell.LSP.Test.Replay
34   reexported-modules:  haskell-lsp:Language.Haskell.LSP.Types
35                      , haskell-lsp:Language.Haskell.LSP.Types.Capabilities
36                      , parser-combinators:Control.Applicative.Combinators
37   default-language:    Haskell2010
38   build-depends:       base >= 4.7 && < 5
39                      , haskell-lsp >= 0.8 && < 0.9
40                      , aeson
41                      , aeson-pretty
42                      , ansi-terminal
43                      , bytestring
44                      , conduit
45                      , conduit-parse
46                      , containers
47                      , data-default
48                      , Diff
49                      , directory
50                      , filepath
51                      , lens
52                      , mtl
53                      , parser-combinators
54                      , process
55                      , text
56                      , transformers
57                      , unordered-containers
58                      , yi-rope
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.7 && < 5
79                      , hspec
80                      , lens
81                      , haskell-lsp >= 0.8 && < 0.9
82                      , lsp-test
83                      , data-default
84                      , aeson
85                      , unordered-containers
86                      , text
87   default-language:    Haskell2010
88