256106f248c4cef4d6bca8708c0f28597abd0031
[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                      , random
36                      , text
37                      , transformers
38                      , uuid
39                      , unordered-containers
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.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                      , directory
62                      , haskell-lsp-test
63                      , haskell-lsp
64                      , conduit
65                      , conduit-parse
66   other-modules:       ParsingTests
67   default-language:    Haskell2010
68
69 executable example
70   hs-source-dirs:      example
71   main-is:             Main.hs
72   default-language:    Haskell2010
73   build-depends:       base >= 4.7 && < 5
74                      , haskell-lsp-test
75                      , haskell-lsp-types
76                      , lens
77                      , text
78                      , directory