1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
GHCFLAGS=-Wall -Wno-tabs -Wno-orphans -Wno-name-shadowing -XHaskell2010 -O2 -threaded
HLINTFLAGS=-XHaskell2010 -XCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension'
.PHONY: all shell clean
all: report.html cheogram
cheogram: Main.hs Adhoc.hs Config.hs ConfigureDirectMessageRoute.hs DB.hs IQManager.hs RedisURL.hs StanzaRec.hs UniquePrefix.hs Util.hs
ghc -dynamic -package monads-tf -o cheogram Main.hs
report.html: Main.hs Adhoc.hs Config.hs ConfigureDirectMessageRoute.hs DB.hs IQManager.hs RedisURL.hs StanzaRec.hs UniquePrefix.hs Util.hs
-hlint $(HLINTFLAGS) --report $^
shell:
ghci $(GHCFLAGS)
clean:
find -name '*.o' -o -name '*.hi' | xargs $(RM)
$(RM) cheogram report.html