From 3b7d095a2fde8c031a987dd00aff4ad8e7421cf0 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Wed, 4 Oct 2017 16:57:44 +0200 Subject: Add a test which brings up a GHC session --- cabal-helper.cabal | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'cabal-helper.cabal') diff --git a/cabal-helper.cabal b/cabal-helper.cabal index 2062562..80002b3 100644 --- a/cabal-helper.cabal +++ b/cabal-helper.cabal @@ -35,6 +35,15 @@ cabal-version: >=1.14 extra-source-files: README.md src/CabalHelper/Runtime/*.hs + tests/*.hs + + tests/exelib/*.hs + tests/exelib/lib/*.hs + + tests/exeintlib/*.hs + tests/exeintlib/lib/*.hs + tests/exeintlib/intlib/*.hs + source-repository head type: git location: https://github.com/DanielG/cabal-helper.git @@ -155,6 +164,34 @@ test-suite compile-test , utf8-string < 1.1 && >= 1.0.1.1 , ghc-prim +test-suite ghc-session + default-language: Haskell2010 + default-extensions: NondecreasingIndentation + type: exitcode-stdio-1.0 + main-is: GhcSession.hs + hs-source-dirs: tests, src + ghc-options: -Wall + build-depends: base < 5 && >= 4.5 + , ghc < 8.3 && >= 7.4 + , ghc-paths < 0.2 && >= 0.1.0.9 + , cabal-helper + + -- Same as cabal-helper-wrapper + build-depends: base < 5 && >= 4.5 + , Cabal < 2.1 && >= 2.0 || < 1.26 && >= 1.14 + , bytestring < 0.11 && >= 0.9.2.1 + , directory < 1.4 && >= 1.1.0.2 + , exceptions < 0.9 && >= 0.8.3 + , filepath < 1.5 && >= 1.3.0.0 + , mtl < 2.3 && >= 2.0 + , process < 1.7 && >= 1.1.0.1 + , template-haskell < 2.13 && >= 2.7.0.0 + , temporary < 1.3 && >= 1.2.0.4 + , transformers < 0.6 && >= 0.3.0.0 + , unix < 2.8 && >= 2.5.1.1 + , utf8-string < 1.1 && >= 1.0.1.1 + , ghc-prim + executable cabal-helper-main default-language: Haskell2010 default-extensions: NondecreasingIndentation -- cgit v1.2.3