Hook LSP script into haskell-lsp-test
[lsp-test.git] / haskell-lsp-test.cabal
1 name:                haskell-lsp-test
2 version:             0.1.0.0
3 -- synopsis:
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 copyright:           2018 Luke Lau
11 category:            Testing
12 build-type:          Simple
13 cabal-version:       >=1.10
14 extra-source-files:  README.md
15
16 library
17   hs-source-dirs:      src
18   exposed-modules:     Language.Haskell.LSP.Test
19                      , Language.Haskell.LSP.Test.Replay
20   default-language:    Haskell2010
21   build-depends:       base >= 4.7 && < 5
22                      , haskell-lsp-types
23                      , haskell-lsp >= 0.3
24                      , aeson
25                      , ansi-terminal
26                      , async
27                      , bytestring
28                      , conduit
29                      , conduit-parse
30                      , containers
31                      , data-default
32                      , directory
33                      , filepath
34                      , lens
35                      , mtl
36                      , parser-combinators
37                      , process
38                      , text
39                      , transformers
40                      , unordered-containers
41                      , yi-rope
42   if os(windows)
43     build-depends:     Win32
44   else
45     build-depends:     unix
46   other-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.Machine
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 executable lsp-test
58   hs-source-dirs:     src
59   main-is:            Language/Haskell/LSP/Test/Script.hs
60   default-language:   Haskell2010
61   build-depends:      base >= 4.7 && < 5
62                     , haskell-lsp-types
63                     , haskell-lsp >= 0.3
64                     , aeson
65                     , ansi-terminal
66                     , async
67                     , bytestring
68                     , conduit
69                     , conduit-parse
70                     , containers
71                     , data-default
72                     , directory
73                     , filepath
74                     , lens
75                     , mtl
76                     , parser-combinators
77                     , process
78                     , text
79                     , transformers
80                     , unordered-containers
81                     , scientific
82                     , yi-rope
83   if os(windows)
84     build-depends:     Win32
85   else
86     build-depends:     unix
87
88 test-suite tests
89   type:                exitcode-stdio-1.0
90   main-is:             Test.hs
91   hs-source-dirs:      test
92   ghc-options:         -W
93   build-depends:       base >= 4.7 && < 5
94                      , hspec
95                      , lens
96                      , data-default
97                      , directory
98                      , haskell-lsp-test
99                      , haskell-lsp
100                      , haskell-lsp-types
101                      , conduit
102                      , conduit-parse
103                      , aeson
104                      , unordered-containers
105                      , text
106   other-modules:       ParsingTests
107   default-language:    Haskell2010
108
109 executable lsp-test-example
110   hs-source-dirs:      example
111   main-is:             Main.hs
112   default-language:    Haskell2010
113   build-depends:       base >= 4.7 && < 5
114                      , haskell-lsp-test
115                      , haskell-lsp-types
116                      , lens
117                      , text
118                      , directory