Bring in my pathetic attempts to fix travis
[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.Capabilities
22                      , Language.Haskell.LSP.Test.Replay
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                      , Diff
38                      , directory
39                      , filepath
40                      , lens
41                      , mtl
42                      , parser-combinators
43                      , process
44                      , text
45                      , transformers
46                      , unordered-containers
47                      , yi-rope
48   if os(windows)
49     build-depends:     Win32
50   else
51     build-depends:     unix
52   other-modules:       Language.Haskell.LSP.Test.Compat
53                        Language.Haskell.LSP.Test.Decoding
54                        Language.Haskell.LSP.Test.Exceptions
55                        Language.Haskell.LSP.Test.Files
56                        Language.Haskell.LSP.Test.Messages
57                        Language.Haskell.LSP.Test.Parsing
58                        Language.Haskell.LSP.Test.Server
59                        Language.Haskell.LSP.Test.Session
60   ghc-options:         -W
61
62 test-suite tests
63   type:                exitcode-stdio-1.0
64   main-is:             Test.hs
65   hs-source-dirs:      test
66   ghc-options:         -W
67   build-depends:       base >= 4.7 && < 5
68                      , hspec
69                      , lens
70                      , data-default
71                      , haskell-lsp >= 0.4
72                      , haskell-lsp-test
73                      , aeson
74                      , unordered-containers
75                      , text
76   default-language:    Haskell2010
77
78 executable lsp-test-example
79   hs-source-dirs:      example
80   main-is:             Main.hs
81   default-language:    Haskell2010
82   build-depends:       base >= 4.7 && < 5
83                      , haskell-lsp-test