Plug in hedgehog
[lsp-test.git] / haskell-lsp-test.cabal
1 name:                haskell-lsp-test
2 version:             0.1.0.0
3 synopsis:            Functional test framework for LSP servers.
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 stability:           experimental
11 bug-reports:         https://github.com/Bubba/haskell-lsp-test/issues
12 copyright:           2018 Luke Lau
13 category:            Testing
14 build-type:          Simple
15 cabal-version:       >=1.10
16 extra-source-files:  README.md
17
18 library
19   hs-source-dirs:      src
20   exposed-modules:     Language.Haskell.LSP.Test
21                      , Language.Haskell.LSP.Test.Replay
22                      , Language.Haskell.LSP.Test.Machine
23   reexported-modules:  haskell-lsp:Language.Haskell.LSP.Types
24                      , haskell-lsp:Language.Haskell.LSP.Types.Capabilities
25                      , parser-combinators:Control.Applicative.Combinators
26   default-language:    Haskell2010
27   build-depends:       base >= 4.7 && < 5
28                      , haskell-lsp >= 0.4
29                      , aeson
30                      , aeson-pretty
31                      , ansi-terminal
32                      , bytestring
33                      , conduit
34                      , conduit-parse
35                      , containers
36                      , data-default
37                      , directory
38                      , exceptions
39                      , filepath
40                      , hedgehog
41                      , lens
42                      , mtl
43                      , parser-combinators
44                      , process
45                      , text
46                      , transformers
47                      , unordered-containers
48                      , yi-rope
49   if os(windows)
50     build-depends:     Win32
51   else
52     build-depends:     unix
53   other-modules:       Language.Haskell.LSP.Test.Capabilities
54                        Language.Haskell.LSP.Test.Compat
55                        Language.Haskell.LSP.Test.Decoding
56                        Language.Haskell.LSP.Test.Exceptions
57                        Language.Haskell.LSP.Test.Files
58                        Language.Haskell.LSP.Test.Messages
59                        Language.Haskell.LSP.Test.Parsing
60                        Language.Haskell.LSP.Test.Server
61                        Language.Haskell.LSP.Test.Session
62   ghc-options:         -W
63
64 test-suite tests
65   type:                exitcode-stdio-1.0
66   main-is:             Test.hs
67   hs-source-dirs:      test
68   ghc-options:         -W
69   build-depends:       base >= 4.7 && < 5
70                      , hspec
71                      , lens
72                      , data-default
73                      , haskell-lsp >= 0.4
74                      , haskell-lsp-test
75                      , aeson
76                      , unordered-containers
77                      , text
78   default-language:    Haskell2010
79
80 executable lsp-test-example
81   hs-source-dirs:      example
82   main-is:             Main.hs
83   default-language:    Haskell2010
84   build-depends:       base >= 4.7 && < 5
85                      , haskell-lsp-test