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