+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
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)