X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=41b916c8eeba2c7c5ff2c35f00410cd6e9bacc71;hb=bd17e086bf868facb54e6f957643fa2d61defc11;hp=efe18fd6627560dd648e80b346090507036197ac;hpb=92a3d689c4f346b379e19422d6f7d07cc48f5428;p=email-validator.git diff --git a/makefile b/makefile index efe18fd..41b916c 100644 --- a/makefile +++ b/makefile @@ -2,12 +2,26 @@ PN = email-validator BIN = dist/build/$(PN)/$(PN) TESTSUITE_BIN = dist/build/testsuite/testsuite +# Append these warnings to the HCFLAGS environment variable that gets +# passed as options to GHC. We want to see the warnings while developing +# but don't want them hard-coded in the cabal file for end users. +HCFLAGS += -Weverything \ + -Wno-implicit-prelude \ + -Wno-safe \ + -Wno-unsafe \ + -Wno-all-missed-specialisations \ + -Wno-prepositive-qualified-module \ + -Wno-missing-safe-haskell-mode \ + -Wno-missing-deriving-strategies \ + -rtsopts \ + -threaded + .PHONY : test dist hlint $(BIN): $(PN).cabal src/*.hs runghc Setup.hs clean runghc Setup.hs configure --user - runghc Setup.hs build + runghc Setup.hs build --ghc-options="${HCFLAGS}" doc: src/*.hs runghc Setup.hs configure --user @@ -21,9 +35,9 @@ clean: $(TESTSUITE_BIN): $(PN).cabal src/*.hs test/*.hs runghc Setup.hs configure --user --enable-tests - runghc Setup.hs build + runghc Setup.hs build --ghc-options="${HCFLAGS}" -test: $(BIN) $(TESTSUITE_BIN) +check: $(BIN) $(TESTSUITE_BIN) runghc Setup.hs test dist: