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