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