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