summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.ghci2
-rw-r--r--Com/Simatime/buildHaskellApp.nix8
2 files changed, 7 insertions, 3 deletions
diff --git a/.ghci b/.ghci
index 08406ce..79c0fa3 100644
--- a/.ghci
+++ b/.ghci
@@ -1,4 +1,4 @@
:set -XOverloadedStrings
:set prompt "λ "
:set prompt-cont "| "
-:set -Wall
+:set -Werror
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