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