From b33607b048ad88ea4555c1dc2e13ea14d7e75d34 Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Thu, 8 Mar 2018 18:41:23 +0200 Subject: [PATCH] Add custom-setup stanza and containers lowerbound custom-setup: - http://cabal.readthedocs.io/en/latest/developing-packages.html#custom-setup-scripts - https://www.well-typed.com/blog/2015/07/cabal-setup-deps/ Bounds: - containers-0.5 is required if Data.Map.Strict - parsec-3.0 for Text.Parsec - json-0.3.6 for makeObj --- ShellCheck.cabal | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ShellCheck.cabal b/ShellCheck.cabal index e0c9db0..e4a8290 100644 --- a/ShellCheck.cabal +++ b/ShellCheck.cabal @@ -31,6 +31,12 @@ Extra-Source-Files: -- tests test/shellcheck.hs +custom-setup + setup-depends: + base >= 4 && <5, + process >= 1.0 && <1.7, + Cabal >= 1.10 && <2.3 + source-repository head type: git location: git://github.com/koalaman/shellcheck.git @@ -38,7 +44,7 @@ source-repository head library build-depends: base >= 4 && < 5, - containers, + containers >= 0.5, directory, json, mtl >= 2.2.1, @@ -73,9 +79,9 @@ executable shellcheck base >= 4 && < 5, containers, directory, - json, + json >= 0.3.6, mtl >= 2.2.1, - parsec, + parsec >= 3.0, regex-tdfa, QuickCheck >= 2.7.4 main-is: shellcheck.hs