summaryrefslogtreecommitdiff
path: root/propellor.cabal
diff options
context:
space:
mode:
authorJoey Hess2019-07-02 00:46:21 -0400
committerJoey Hess2019-07-02 00:46:21 -0400
commit2ba2cda972f484771b763603bf09d555003861b7 (patch)
tree13c79ae8e9f46cf6c9ec5353ca366555da0e0ab1 /propellor.cabal
parent7ac0fbfa247ca153a6187c47dde9fc3a94c9cdb5 (diff)
Revert "Revert "custom type error messages""
This reverts commit 665ea0d3d9e1b0e90278fd659dee0ef8642030da.
Diffstat (limited to 'propellor.cabal')
-rw-r--r--propellor.cabal6
1 files changed, 6 insertions, 0 deletions
diff --git a/propellor.cabal b/propellor.cabal
index 300313c0..71d3c578 100644
--- a/propellor.cabal
+++ b/propellor.cabal
@@ -35,6 +35,9 @@ Description:
.
It is configured using haskell.
+Flag WithTypeErrors
+ Description: Build with type-errors library for better error messages
+
Library
Default-Language: Haskell98
GHC-Options: -Wall -fno-warn-tabs -O0
@@ -47,6 +50,9 @@ Library
directory, filepath, IfElse, process, bytestring, hslogger, split,
unix, unix-compat, ansi-terminal, containers (>= 0.5), network, async,
time, mtl, transformers, exceptions (>= 0.6), stm, text, hashable
+ if flag(WithTypeErrors)
+ Build-Depends: type-errors
+ CPP-Options: -DWITH_TYPE_ERRORS
Exposed-Modules:
Propellor