From 40170cd7f01a3fe06c99d767d2eea68edc9e7374 Mon Sep 17 00:00:00 2001
From: ijones <ijones@syntaxpolice.org>
Date: Mon, 5 Sep 2005 18:55:43 +0000
Subject: [PATCH] added -D__GLASGOW_HASKELL__ for hcDefines, probably needed by
 cpp

---
 Distribution/PreProcess.hs | 2 ++
 TODO                       | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/Distribution/PreProcess.hs b/Distribution/PreProcess.hs
index e0bbe66930..847793ead0 100644
--- a/Distribution/PreProcess.hs
+++ b/Distribution/PreProcess.hs
@@ -250,6 +250,8 @@ hcDefines Compiler { compilerFlavor=NHC, compilerVersion=version }
   = ["-D__NHC__=" ++ versionInt version]
 hcDefines Compiler { compilerFlavor=Hugs }
   = ["-D__HUGS__"]
+hcDefines Compiler { compilerFlavor=GHC, compilerVersion=version }
+  = ["-D__GLASGOW_HASKELL__=" ++ versionInt version]
 hcDefines _ = []
 
 versionInt :: Version -> String
diff --git a/TODO b/TODO
index 21c680798d..544f8d7ee1 100644
--- a/TODO
+++ b/TODO
@@ -25,6 +25,8 @@ let me know if you want a complete testcase.
 * Clarify build-depends; unix? posix? utils? see journal entry of aug
    22, 2005.
 
+* look at "cabal design 
+
 * REMOVE THESE FLAGS: add flags The patch adds a couple extra configure options,
   --enable-library-for-ghci / --disable-library-for-ghci or whatever
    they end up being, to the manual.  Which is default?  Add test case
-- 
GitLab