Merge branch 'master' into script-fsm
[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:       >=2.0
16 extra-source-files:  README.md
17
18 library
19   hs-source-dirs:      lib
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-types
29                      , haskell-lsp >= 0.4
30                      , haskell-lsp-test-internal
31                      , aeson
32                      , bytestring
33                      , containers
34                      , data-default
35                      , directory
36                      , filepath
37                      , lens
38                      , parser-combinators
39                      , text
40                      , unordered-containers
41                      , yi-rope
42
43 library haskell-lsp-test-internal
44   hs-source-dirs:      src
45   default-language:    Haskell2010
46   exposed-modules:     Language.Haskell.LSP.Test.Compat
47                        Language.Haskell.LSP.Test.Decoding
48                        Language.Haskell.LSP.Test.Exceptions
49                        Language.Haskell.LSP.Test.Files
50                        Language.Haskell.LSP.Test.Messages
51                        Language.Haskell.LSP.Test.Parsing
52                        Language.Haskell.LSP.Test.Script
53                        Language.Haskell.LSP.Test.Server
54                        Language.Haskell.LSP.Test.Session
55   build-depends:       base
56                      , haskell-lsp-types
57                      , haskell-lsp >= 0.3
58                      , aeson
59                      , ansi-terminal
60                      , async
61                      , bytestring
62                      , conduit
63                      , conduit-parse
64                      , containers
65                      , data-default
66                      , directory
67                      , filepath
68                      , lens
69                      , mtl
70                      , scientific
71                      , parser-combinators
72                      , process
73                      , text
74                      , transformers
75                      , unordered-containers
76                      , yi-rope
77   if os(windows)
78     build-depends:     Win32
79   else
80     build-depends:     unix
81   ghc-options:         -W
82
83 executable lsp-test
84   hs-source-dirs:     lsp-test
85   main-is:            Main.hs
86   default-language:   Haskell2010
87   build-depends:      base >= 4.7 && < 5
88                     , haskell-lsp-types
89                     , haskell-lsp >= 0.4
90                     , haskell-lsp-test-internal
91                     , haskell-lsp-test
92                     , aeson
93                     , bytestring
94                     , directory
95                     , filepath
96                     , text
97                     , unordered-containers
98                     , scientific
99
100 test-suite tests
101   type:                exitcode-stdio-1.0
102   main-is:             Test.hs
103   hs-source-dirs:      test
104   ghc-options:         -W
105   build-depends:       base >= 4.7 && < 5
106                      , hspec
107                      , lens
108                      , data-default
109                      , haskell-lsp >= 0.4
110                      , haskell-lsp-test
111                      , aeson
112                      , unordered-containers
113                      , text
114   default-language:    Haskell2010
115
116 executable lsp-test-example
117   hs-source-dirs:      example
118   main-is:             Main.hs
119   default-language:    Haskell2010
120   build-depends:       base >= 4.7 && < 5
121                      , haskell-lsp-test