Add manual session testing
[opengl.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.Recorded
20   default-language:    Haskell2010
21   build-depends:       base >= 4.7 && < 5
22                      , haskell-lsp-types
23                      , haskell-lsp
24                      , data-default
25                      , bytestring
26                      , aeson
27                      , lens
28                      , filepath
29                      , text
30                      , transformers
31                      , process
32                      , directory
33                      , containers
34                      , unordered-containers
35   if os(windows)
36     build-depends:     win32
37   else
38     build-depends:     unix
39   other-modules:       Compat
40                        Language.Haskell.LSP.Test.Files
41                        Language.Haskell.LSP.Test.Parsing
42   ghc-options:         -W
43
44 test-suite tests
45   type:                exitcode-stdio-1.0
46   main-is:             Test.hs
47   hs-source-dirs:      test
48   ghc-options:         -W
49   build-depends:       base >= 4.7 && < 5
50                      , hspec
51                      , lens
52                      , directory
53                      , haskell-lsp-test
54                      , haskell-lsp-types
55   default-language:    Haskell2010
56
57 executable example
58   hs-source-dirs:      example
59   main-is:             Main.hs
60   default-language:    Haskell2010
61   build-depends:       base >= 4.7 && < 5
62                      , haskell-lsp-test
63                      , haskell-lsp-types
64                      , lens
65                      , text
66                      , directory
67
68 executable recorded-example
69   hs-source-dirs:      example
70   main-is:             Recorded.hs
71   default-language:    Haskell2010
72   build-depends:       base >= 4.7 && < 5
73                      , haskell-lsp-test
74                      , directory