Handle text document change events with VFS
[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                      , yi-rope
39   if os(windows)
40     build-depends:     Win32
41   else
42     build-depends:     unix
43   other-modules:       Language.Haskell.LSP.Test.Compat
44                        Language.Haskell.LSP.Test.Decoding
45                        Language.Haskell.LSP.Test.Files
46                        Language.Haskell.LSP.Test.Messages
47                        Language.Haskell.LSP.Test.Parsing
48                        Language.Haskell.LSP.Test.Server
49                        Language.Haskell.LSP.Test.Session
50   ghc-options:         -W
51
52 test-suite tests
53   type:                exitcode-stdio-1.0
54   main-is:             Test.hs
55   hs-source-dirs:      test
56   ghc-options:         -W
57   build-depends:       base >= 4.7 && < 5
58                      , hspec
59                      , lens
60                      , directory
61                      , haskell-lsp-test
62                      , haskell-lsp
63                      , conduit
64                      , conduit-parse
65                      , aeson
66                      , unordered-containers
67   other-modules:       ParsingTests
68   default-language:    Haskell2010
69
70 executable example
71   hs-source-dirs:      example
72   main-is:             Main.hs
73   default-language:    Haskell2010
74   build-depends:       base >= 4.7 && < 5
75                      , haskell-lsp-test
76                      , haskell-lsp-types
77                      , lens
78                      , text
79                      , directory