Add getCompletions helper function
[lsp-test.git] / haskell-lsp-test.cabal
index 44c0487989b04b57bb5f368e977bf5754df0c089..161126ec83ac8f0df223e1812ab3e1f49aa4e22c 100644 (file)
@@ -16,21 +16,60 @@ extra-source-files:  README.md
 library
   hs-source-dirs:      src
   exposed-modules:     Language.Haskell.LSP.Test
+                     , Language.Haskell.LSP.Test.Replay
   default-language:    Haskell2010
   build-depends:       base >= 4.7 && < 5
-                     , haskell-lsp-client
-                     , haskell-lsp-types
+                     , haskell-lsp >= 0.3
+                     , aeson
+                     , ansi-terminal
+                     , async
+                     , bytestring
+                     , conduit
+                     , conduit-parse
+                     , containers
+                     , data-default
+                     , directory
+                     , filepath
                      , lens
+                     , mtl
+                     , parser-combinators
+                     , process
                      , text
                      , transformers
-                     , process
+                     , unordered-containers
+                     , yi-rope
   if os(windows)
-    build-depends:     win32
+    build-depends:     Win32
   else
     build-depends:     unix
-  other-modules:       Compat
-                       Capabilities
+  other-modules:       Language.Haskell.LSP.Test.Compat
+                       Language.Haskell.LSP.Test.Decoding
+                       Language.Haskell.LSP.Test.Exceptions
+                       Language.Haskell.LSP.Test.Files
+                       Language.Haskell.LSP.Test.Messages
+                       Language.Haskell.LSP.Test.Parsing
+                       Language.Haskell.LSP.Test.Server
+                       Language.Haskell.LSP.Test.Session
+  ghc-options:         -W
+
+test-suite tests
+  type:                exitcode-stdio-1.0
+  main-is:             Test.hs
+  hs-source-dirs:      test
   ghc-options:         -W
+  build-depends:       base >= 4.7 && < 5
+                     , hspec
+                     , lens
+                     , data-default
+                     , directory
+                     , haskell-lsp-test
+                     , haskell-lsp
+                     , conduit
+                     , conduit-parse
+                     , aeson
+                     , unordered-containers
+                     , text
+  default-language:    Haskell2010
 
 executable example
   hs-source-dirs:      example