Pretty print message trace
[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   reexported-modules:  haskell-lsp:Language.Haskell.LSP.Types
23                      , haskell-lsp:Language.Haskell.LSP.Types.Capabilities
24                      , parser-combinators:Control.Applicative.Combinators
25   default-language:    Haskell2010
26   build-depends:       base >= 4.7 && < 5
27                      , haskell-lsp >= 0.4
28                      , aeson
29                      , aeson-pretty
30                      , ansi-terminal
31                      , bytestring
32                      , conduit
33                      , conduit-parse
34                      , containers
35                      , data-default
36                      , directory
37                      , filepath
38                      , lens
39                      , mtl
40                      , parser-combinators
41                      , process
42                      , text
43                      , transformers
44                      , unordered-containers
45                      , yi-rope
46   if os(windows)
47     build-depends:     Win32
48   else
49     build-depends:     unix
50   other-modules:       Language.Haskell.LSP.Test.Capabilities
51                        Language.Haskell.LSP.Test.Compat
52                        Language.Haskell.LSP.Test.Decoding
53                        Language.Haskell.LSP.Test.Exceptions
54                        Language.Haskell.LSP.Test.Files
55                        Language.Haskell.LSP.Test.Messages
56                        Language.Haskell.LSP.Test.Parsing
57                        Language.Haskell.LSP.Test.Server
58                        Language.Haskell.LSP.Test.Session
59   ghc-options:         -W
60
61 test-suite tests
62   type:                exitcode-stdio-1.0
63   main-is:             Test.hs
64   hs-source-dirs:      test
65   ghc-options:         -W
66   build-depends:       base >= 4.7 && < 5
67                      , hspec
68                      , lens
69                      , data-default
70                      , haskell-lsp >= 0.4
71                      , haskell-lsp-test
72                      , aeson
73                      , unordered-containers
74                      , text
75   default-language:    Haskell2010
76
77 executable lsp-test-example
78   hs-source-dirs:      example
79   main-is:             Main.hs
80   default-language:    Haskell2010
81   build-depends:       base >= 4.7 && < 5
82                      , haskell-lsp-test