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