Prevents example being installed with cabal install
**/.DS_Store
*.swp
+example/dist
+example/dist-newstyle
+example/cabal.project.local
+example/.ghc.environment.*
+
# used for rerunning failed hspec tests
.hspec-failures
anyRequest <|> anyResponse
```
+Try out the example tests in the `example` directory with `cabal new-test`.
For more examples check the [Wiki](https://github.com/Bubba/haskell-lsp-test/wiki/Introduction)
## Developing
import Language.Haskell.LSP.Test
import Language.Haskell.LSP.Types
-main = runSession "hie --lsp" fullCaps "test/data/renamePass" $ do
- docItem <- openDoc "Desktop/simple.hs" "haskell"
+main = runSession "hie --lsp" fullCaps "../test/data/" $ do
+ docItem <- openDoc "Rename.hs" "haskell"
-- Use your favourite favourite combinators.
skipManyTill loggingNotification (count 2 publishDiagnosticsNotification)
--- /dev/null
+packages: .
+ ../
--- /dev/null
+name: example
+version: 0.0.0.0
+cabal-version: >= 1.22
+build-type: Simple
+
+test-suite tests
+ type: exitcode-stdio-1.0
+ main-is: Test.hs
+ build-depends: base
+ , lsp-test
+ , parser-combinators
, text
default-language: Haskell2010
-executable lsp-test-example
- hs-source-dirs: example
- main-is: Main.hs
- default-language: Haskell2010
- build-depends: base >= 4.7 && < 5
- , lsp-test