summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--minici.cabal17
-rw-r--r--minici.yaml3
-rw-r--r--src/Version.hs4
3 files changed, 23 insertions, 1 deletions
diff --git a/minici.cabal b/minici.cabal
index f295d2b..a361cd3 100644
--- a/minici.cabal
+++ b/minici.cabal
@@ -20,9 +20,24 @@ maintainer: roman.smrz@seznam.cz
extra-doc-files:
CHANGELOG.md
+flag ci
+ description: Options for CI testing
+ default: False
+ manual: True
+
executable minici
main-is: Main.hs
- ghc-options: -Wall -threaded
+
+ ghc-options:
+ -Wall
+ -threaded
+ -fdefer-typed-holes
+
+ if flag(ci)
+ ghc-options:
+ -Werror
+ -- sometimes needed for backward/forward compatibility:
+ -Wno-error=unused-imports
-- Modules included in this executable, other than Main.
other-modules:
diff --git a/minici.yaml b/minici.yaml
new file mode 100644
index 0000000..a3f87f5
--- /dev/null
+++ b/minici.yaml
@@ -0,0 +1,3 @@
+job build:
+ shell:
+ - cabal build -fci
diff --git a/src/Version.hs b/src/Version.hs
index d476912..322f8bd 100644
--- a/src/Version.hs
+++ b/src/Version.hs
@@ -1,5 +1,9 @@
{-# LANGUAGE TemplateHaskell #-}
+-- "Pattern match is redundant" warning can be generated based on template
+-- haskell $$tGitVersion value
+{-# OPTIONS_GHC -Wno-error=overlapping-patterns #-}
+
module Version (
versionLine,
) where