GHC_WARNINGS += -fwarn-orphans
GHC_WARNINGS += -fwarn-type-defaults
-BIN := spline
+BIN := spline3
-.PHONY : test doc src_html
+.PHONY : test doc src_html hlint
$(BIN): src/*.hs
ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs
rm -f src/Tests/*.hi
rm -f src/Tests/*.o
rm -f *.prof
- rm -rf doc/*
+ rm -rf doc/html/*
test:
runghc -i"src" test/TestSuite.hs
doc: src_html
haddock $(DOCS) --html --use-unicode \
- --odir=doc/ --title="spline3" \
+ --odir=doc/html/ --title="spline3" \
--source-module="src/%{MODULE/.//}.html" \
--source-entity="src/%{MODULE/.//}.html#%{NAME}" \
src/*.hs src/Tests/*.hs
+
+hlint:
+ hlint --ignore="Use camelCase" \
+ --ignore="Redundant bracket" \
+ --color \
+ src