Add getDiagnostics
[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 >= 0.3
24                      , aeson
25                      , async
26                      , bytestring
27                      , conduit
28                      , conduit-parse
29                      , containers
30                      , data-default
31                      , directory
32                      , filepath
33                      , lens
34                      , mtl
35                      , parser-combinators
36                      , process
37                      , text
38                      , transformers
39                      , unordered-containers
40                      , yi-rope
41   if os(windows)
42     build-depends:     Win32
43   else
44     build-depends:     unix
45   other-modules:       Language.Haskell.LSP.Test.Compat
46                        Language.Haskell.LSP.Test.Decoding
47                        Language.Haskell.LSP.Test.Exceptions
48                        Language.Haskell.LSP.Test.Files
49                        Language.Haskell.LSP.Test.Messages
50                        Language.Haskell.LSP.Test.Parsing
51                        Language.Haskell.LSP.Test.Server
52                        Language.Haskell.LSP.Test.Session
53   ghc-options:         -W
54
55 test-suite tests
56   type:                exitcode-stdio-1.0
57   main-is:             Test.hs
58   hs-source-dirs:      test
59   ghc-options:         -W
60   build-depends:       base >= 4.7 && < 5
61                      , hspec
62                      , lens
63                      , data-default
64                      , directory
65                      , haskell-lsp-test
66                      , haskell-lsp
67                      , haskell-lsp-types
68                      , conduit
69                      , conduit-parse
70                      , aeson
71                      , unordered-containers
72   other-modules:       ParsingTests
73   default-language:    Haskell2010
74
75 executable 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
81                      , haskell-lsp-types
82                      , lens
83                      , text
84                      , directory