Add tests
[lsp-test.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.Recorded
20   default-language:    Haskell2010
21   build-depends:       base >= 4.7 && < 5
22                      , haskell-lsp-client
23                      , haskell-lsp-types
24                      , haskell-lsp
25                      , data-default
26                      , bytestring
27                      , aeson
28                      , lens
29                      , text
30                      , transformers
31                      , process
32                      , directory
33   if os(windows)
34     build-depends:     win32
35   else
36     build-depends:     unix
37   other-modules:       Compat
38                        Capabilities
39   ghc-options:         -W
40
41 test-suite tests
42   type:                exitcode-stdio-1.0
43   main-is:             Test.hs
44   hs-source-dirs:      test
45   ghc-options:         -W
46   build-depends:       base >= 4.7 && < 5
47                      , hspec
48                      , haskell-lsp-test
49   default-language:    Haskell2010
50
51 executable example
52   hs-source-dirs:      example
53   main-is:             Main.hs
54   default-language:    Haskell2010
55   build-depends:       base >= 4.7 && < 5
56                      , haskell-lsp-test
57                      , haskell-lsp-types
58                      , lens
59                      , text
60                      , directory
61
62 executable recorded-example
63   hs-source-dirs:      example
64   main-is:             Recorded.hs
65   default-language:    Haskell2010
66   build-depends:       base >= 4.7 && < 5
67                      , haskell-lsp-test
68                      , directory