Add test for document change tracking
[opengl.git] / haskell-lsp-test.cabal
1 name:                haskell-lsp-test
2 version:             0.1.0.0
3 -- synopsis:
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 copyright:           2018 Luke Lau
11 category:            Testing
12 build-type:          Simple
13 cabal-version:       >=1.10
14 extra-source-files:  README.md
15
16 library
17   hs-source-dirs:      src
18   exposed-modules:     Language.Haskell.LSP.Test
19                      , Language.Haskell.LSP.Test.Replay
20   default-language:    Haskell2010
21   build-depends:       base >= 4.7 && < 5
22                      , haskell-lsp-types
23                      , haskell-lsp
24                      , aeson
25                      , bytestring
26                      , conduit
27                      , conduit-parse
28                      , containers
29                      , data-default
30                      , directory
31                      , filepath
32                      , lens
33                      , parser-combinators
34                      , process >= 1.6.3
35                      , text
36                      , transformers
37                      , unordered-containers
38   if os(windows)
39     build-depends:     Win32
40   else
41     build-depends:     unix
42   other-modules:       Language.Haskell.LSP.Test.Compat
43                        Language.Haskell.LSP.Test.Decoding
44                        Language.Haskell.LSP.Test.Files
45                        Language.Haskell.LSP.Test.Messages
46                        Language.Haskell.LSP.Test.Parsing
47                        Language.Haskell.LSP.Test.Server
48                        Language.Haskell.LSP.Test.Session
49   ghc-options:         -W
50
51 test-suite tests
52   type:                exitcode-stdio-1.0
53   main-is:             Test.hs
54   hs-source-dirs:      test
55   ghc-options:         -W
56   build-depends:       base >= 4.7 && < 5
57                      , hspec
58                      , lens
59                      , directory
60                      , haskell-lsp-test
61                      , haskell-lsp
62                      , conduit
63                      , conduit-parse
64                      , aeson
65                      , unordered-containers
66   other-modules:       ParsingTests
67   default-language:    Haskell2010
68
69 executable example
70   hs-source-dirs:      example
71   main-is:             Main.hs
72   default-language:    Haskell2010
73   build-depends:       base >= 4.7 && < 5
74                      , haskell-lsp-test
75                      , haskell-lsp-types
76                      , lens
77                      , text
78                      , directory