From 99a9b612ec07890c1b0defd41f2f958306dea6fb Mon Sep 17 00:00:00 2001 From: adithyaov Date: Fri, 7 Feb 2020 22:12:59 +0530 Subject: [PATCH] Add test checking for conflicting versions when build depends on ghc --- streamly.cabal | 11 +++++++++++ test/version-bounds.hs | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 test/version-bounds.hs diff --git a/streamly.cabal b/streamly.cabal index 35a9bc20..367706f7 100644 --- a/streamly.cabal +++ b/streamly.cabal @@ -618,6 +618,17 @@ test-suite parallel-loops , base >= 4.8 && < 5 , random >= 1.0.0 && < 2 +test-suite version-bounds + import: test-options + type: exitcode-stdio-1.0 + default-language: Haskell2010 + main-is: version-bounds.hs + hs-source-dirs: test + build-Depends: + streamly + , ghc + , base >= 4.8 && < 5 + ------------------------------------------------------------------------------- -- Benchmarks ------------------------------------------------------------------------------- diff --git a/test/version-bounds.hs b/test/version-bounds.hs new file mode 100644 index 00000000..f75178a0 --- /dev/null +++ b/test/version-bounds.hs @@ -0,0 +1,4 @@ +main :: IO () +main = + print + "Version bounds do not conflict when both streamly and ghc are dependencies."