f32611c4d025d0325dac1abd82ca53fb1205bf35
[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                      , haskell-lsp-test
54   default-language:    Haskell2010
55
56 executable example
57   hs-source-dirs:      example
58   main-is:             Main.hs
59   default-language:    Haskell2010
60   build-depends:       base >= 4.7 && < 5
61                      , haskell-lsp-test
62                      , haskell-lsp-types
63                      , lens
64                      , text
65                      , directory
66
67 executable recorded-example
68   hs-source-dirs:      example
69   main-is:             Recorded.hs
70   default-language:    Haskell2010
71   build-depends:       base >= 4.7 && < 5
72                      , haskell-lsp-test
73                      , directory