Add compatibility gorp for GHC 6.6.1.
[match/match.git] / program / Makefile
index df9942e..78eb667 100644 (file)
@@ -1,7 +1,9 @@
 # Let's keep it simple for now.
+# -cpp: Handle GHC 6.6.1 compatibility checks.
+# -fglasgow-exts: Handle rank-2 type of RandomizedMonad, among other things.
 all:
-       ghc -fglasgow-exts --make -c *.hs
+       ghc -cpp -fglasgow-exts --make -c *.hs
 all-optimized:
-       ghc -fglasgow-exts --make -O -hisuf O.hi -osuf O.o -c *.hs
+       ghc -cpp -fglasgow-exts --make -O -hisuf O.hi -osuf O.o -c *.hs
 clean:
        rm -f *.hi *.o