Fix embarassing error with publishDiagnosticsNotification
[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
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.Parsing
46                        Language.Haskell.LSP.Test.Messages
47   ghc-options:         -W
48
49 test-suite tests
50   type:                exitcode-stdio-1.0
51   main-is:             Test.hs
52   hs-source-dirs:      test
53   ghc-options:         -W
54   build-depends:       base >= 4.7 && < 5
55                      , hspec
56                      , lens
57                      , directory
58                      , haskell-lsp-test
59                      , haskell-lsp
60                      , conduit
61                      , conduit-parse
62   other-modules:       ParsingTests
63   default-language:    Haskell2010
64
65 executable example
66   hs-source-dirs:      example
67   main-is:             Main.hs
68   default-language:    Haskell2010
69   build-depends:       base >= 4.7 && < 5
70                      , haskell-lsp-test
71                      , haskell-lsp-types
72                      , lens
73                      , text
74                      , directory