2 BIN = dist/build/$(PN)/$(PN)
3 TESTSUITE_BIN = dist/build/testsuite/testsuite
5 # Append these warnings to the HCFLAGS environment variable that gets
6 # passed as options to GHC. We want to see the warnings while developing
7 # but don't want them hard-coded in the cabal file for end users.
8 HCFLAGS += -Weverything \
9 -Wno-implicit-prelude \
12 -Wno-all-missed-specialisations \
13 -Wno-prepositive-qualified-module \
14 -Wno-missing-safe-haskell-mode \
15 -Wno-missing-deriving-strategies \
16 -Wno-missing-kind-signatures \
20 .PHONY : doc test dist hlint
22 $(BIN): $(PN).cabal src/*.hs
24 runghc Setup.hs configure --user
25 runghc Setup.hs build --ghc-options="${HCFLAGS}"
28 runghc Setup.hs configure --user
29 runghc Setup.hs haddock --all \
31 --haddock-options="--ignore-all-exports"
37 $(TESTSUITE_BIN): $(PN).cabal src/*.hs test/*.hs
38 runghc Setup.hs configure --user --enable-tests
39 runghc Setup.hs build --ghc-options="${HCFLAGS}"
41 check: $(BIN) $(TESTSUITE_BIN)
45 runghc Setup.hs configure
49 hlint --ignore="Use camelCase" \
50 --ignore="Redundant bracket" \