From 1cc135b7c772fb1ab9faadaadc304fbe9aac15b8 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 23 Nov 2019 17:04:27 -0800 Subject: Make all warnings errors in GHC --- Com/Simatime/buildHaskellApp.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Com') 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 -- cgit v1.2.3