summaryrefslogtreecommitdiff
path: root/Com/Simatime
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-11-23 17:04:27 -0800
committerBen Sima <ben@bsima.me>2019-11-23 17:04:27 -0800
commit1cc135b7c772fb1ab9faadaadc304fbe9aac15b8 (patch)
treee95fd51fd33b0932c5050a68ea8d69d127b39d57 /Com/Simatime
parent56a5538e8ca96dd963af8c84ddc9fa1342fdcde6 (diff)
Make all warnings errors in GHC
Diffstat (limited to 'Com/Simatime')
-rw-r--r--Com/Simatime/buildHaskellApp.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/Com/Simatime/buildHaskellApp.nix b/Com/Simatime/buildHaskellApp.nix
index c9011e0..853487d 100644
--- a/Com/Simatime/buildHaskellApp.nix
+++ b/Com/Simatime/buildHaskellApp.nix
@@ -59,12 +59,16 @@ in {
#
# compile with ghc
#
- ${ghc}/bin/ghc -i. --make ${apexPath}.hs -main-is ${pathToNs apexPath} \
+ ${ghc}/bin/ghc -Werror -i. \
+ --make ${apexPath}.hs \
+ -main-is ${pathToNs apexPath} \
-o $out/bin/${nick}
#
# compile with ghcjs
#
- ${ghcjs}/bin/ghcjs -i. --make ${aeroPath}.hs -main-is ${pathToNs aeroPath} \
+ ${ghcjs}/bin/ghcjs -Werror -i. \
+ --make ${aeroPath}.hs \
+ -main-is ${pathToNs aeroPath} \
-o ${aeroPath}
#
# optimize js output