]> gitweb.michael.orlitzky.com - hath.git/commitdiff
Add some additional GHC warnings to the makefile.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 10 May 2010 00:47:47 +0000 (20:47 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 10 May 2010 00:47:47 +0000 (20:47 -0400)
makefile

index b2265f8b28c3351ab088bceea2b6c3a1204c251c..8605a8920e23cb967fa940229ba8301e32623328 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,3 +1,10 @@
+GHC_WARNINGS := -Wall
+GHC_WARNINGS += -fwarn-hi-shadowing
+GHC_WARNINGS += -fwarn-missing-signatures
+GHC_WARNINGS += -fwarn-name-shadowing
+GHC_WARNINGS += -fwarn-orphans
+GHC_WARNINGS += -fwarn-type-defaults
+
 BIN=hath
 
 .PHONY : test
@@ -5,10 +12,10 @@ BIN=hath
 all: $(BIN)
 
 $(BIN): src/*.hs
-       ghc -O2 -Wall --make -o bin/${BIN} src/*.hs
+       ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs
 
 profile: src/*.hs
-       ghc -O2 -Wall -prof -auto-all --make -o bin/$(BIN) src/*.hs
+       ghc -O2 $(GHC_WARNINGS) -prof -auto-all --make -o bin/$(BIN) src/*.hs
 
 clean:
        rm -f bin/$(BIN)