Add SessionConfig
[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                      , 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.Exceptions
46                        Language.Haskell.LSP.Test.Files
47                        Language.Haskell.LSP.Test.Messages
48                        Language.Haskell.LSP.Test.Parsing
49                        Language.Haskell.LSP.Test.Server
50                        Language.Haskell.LSP.Test.Session
51   ghc-options:         -W
52
53 test-suite tests
54   type:                exitcode-stdio-1.0
55   main-is:             Test.hs
56   hs-source-dirs:      test
57   ghc-options:         -W
58   build-depends:       base >= 4.7 && < 5
59                      , hspec
60                      , lens
61                      , data-default
62                      , directory
63                      , haskell-lsp-test
64                      , haskell-lsp
65                      , haskell-lsp-types
66                      , conduit
67                      , conduit-parse
68                      , aeson
69                      , unordered-containers
70   other-modules:       ParsingTests
71   default-language:    Haskell2010
72
73 executable example
74   hs-source-dirs:      example
75   main-is:             Main.hs
76   default-language:    Haskell2010
77   build-depends:       base >= 4.7 && < 5
78                      , haskell-lsp-test
79                      , haskell-lsp-types
80                      , lens
81                      , text
82                      , directory