From 3d532d6673e04fef24efbb68b781964e28cf04b5 Mon Sep 17 00:00:00 2001 From: nek0 Date: Sat, 18 Nov 2017 11:16:19 +0100 Subject: [PATCH] enable logging for example02 --- hw.cabal | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw.cabal b/hw.cabal index 028b71c..fe55bb2 100644 --- a/hw.cabal +++ b/hw.cabal @@ -113,10 +113,17 @@ executable example01 extra-libraries: stdc++ executable example02 + if flag(debug) + cpp-options: -DDEBUG + if flag(warn) + cpp-options: -DWARN + if flag(error) + cpp-options: -DERROR main-is: Main.hs other-modules: Util , Types , Init + , Logging -- other-extensions: default-extensions: OverloadedStrings build-depends: base >=4.9