From e47dd37f1757c8ada0c1e25f41af5fa83952c91f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 9 May 2010 20:47:47 -0400 Subject: [PATCH] Add some additional GHC warnings to the makefile. --- makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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) -- 2.44.2