Decode responses to the correct type
[lsp-test.git] / haskell-lsp-test.cabal
index b00d5077ea3df7e45ae0e21ab8aec2819b89f7af..a61a18d42f33a00be906b2c7cfa217a91b9fe467 100644 (file)
@@ -26,16 +26,35 @@ library
                      , bytestring
                      , aeson
                      , lens
+                     , filepath
                      , text
                      , transformers
                      , process
+                     , directory
+                     , containers
+                     , unordered-containers
   if os(windows)
     build-depends:     win32
   else
     build-depends:     unix
   other-modules:       Compat
                        Capabilities
+                       Language.Haskell.LSP.Test.Files
+                       Language.Haskell.LSP.Test.Parsing
+  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
+                     , directory
+                     , haskell-lsp-test
+                     , haskell-lsp-types
+  default-language:    Haskell2010
 
 executable example
   hs-source-dirs:      example