Start work on script and FSM
[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
63 test-suite tests
64   type:                exitcode-stdio-1.0
65   main-is:             Test.hs
66   hs-source-dirs:      test
67   ghc-options:         -W
68   build-depends:       base >= 4.7 && < 5
69                      , hspec
70                      , lens
71                      , data-default
72                      , directory
73                      , haskell-lsp-test
74                      , haskell-lsp
75                      , haskell-lsp-types
76                      , conduit
77                      , conduit-parse
78                      , aeson
79                      , unordered-containers
80                      , text
81   other-modules:       ParsingTests
82   default-language:    Haskell2010
83
84 executable lsp-test-example
85   hs-source-dirs:      example
86   main-is:             Main.hs
87   default-language:    Haskell2010
88   build-depends:       base >= 4.7 && < 5
89                      , haskell-lsp-test
90                      , haskell-lsp-types
91                      , lens
92                      , text
93                      , directory