From: Michael Orlitzky Date: Mon, 10 May 2010 00:47:47 +0000 (-0400) Subject: Add some additional GHC warnings to the makefile. X-Git-Tag: 0.0.1~48 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=hath.git;a=commitdiff_plain;h=e47dd37f1757c8ada0c1e25f41af5fa83952c91f Add some additional GHC warnings to the makefile. --- diff --git a/makefile b/makefile index b2265f8..8605a89 100644 --- 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)