X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=8605a8920e23cb967fa940229ba8301e32623328;hb=e2cb918f1808f7f54cc742418050d49b424848c5;hp=b2265f8b28c3351ab088bceea2b6c3a1204c251c;hpb=3c4efe66ab7cb5f528c5a711976ca7c8e56213cf;p=hath.git 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)