Start work on swapping out files
[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                      , containers
34   if os(windows)
35     build-depends:     win32
36   else
37     build-depends:     unix
38   other-modules:       Compat
39                        Capabilities
40                        Language.Haskell.LSP.Test.Files
41   ghc-options:         -W
42
43 test-suite tests
44   type:                exitcode-stdio-1.0
45   main-is:             Test.hs
46   hs-source-dirs:      test
47   ghc-options:         -W
48   build-depends:       base >= 4.7 && < 5
49                      , hspec
50                      , haskell-lsp-test
51   default-language:    Haskell2010
52
53 executable example
54   hs-source-dirs:      example
55   main-is:             Main.hs
56   default-language:    Haskell2010
57   build-depends:       base >= 4.7 && < 5
58                      , haskell-lsp-test
59                      , haskell-lsp-types
60                      , lens
61                      , text
62                      , directory
63
64 executable recorded-example
65   hs-source-dirs:      example
66   main-is:             Recorded.hs
67   default-language:    Haskell2010
68   build-depends:       base >= 4.7 && < 5
69                      , haskell-lsp-test
70                      , directory