diff options
author | simonmar <unknown> | 2004-08-12 12:08:23 +0000 |
---|---|---|
committer | simonmar <unknown> | 2004-08-12 12:08:23 +0000 |
commit | 39cf9edec74690e6401c60465b35a96bbf7107a5 (patch) | |
tree | fd9097eeaa846a44f68f70e2e1b3cbb16064525f | |
parent | 814766cd8057e692d640c62c3ce9097c0c88d534 (diff) |
[haddock @ 2004-08-12 12:08:23 by simonmar]
Avoid using string-gap tricks.
-rw-r--r-- | src/HaddockVersion.hs | 3 | ||||
-rw-r--r-- | src/Makefile | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/HaddockVersion.hs b/src/HaddockVersion.hs index 45ad4d60..a2f51c28 100644 --- a/src/HaddockVersion.hs +++ b/src/HaddockVersion.hs @@ -14,5 +14,4 @@ projectUrl = "http://www.haskell.org/haddock/" -- The version comes in via CPP from mk/version.mk projectVersion :: String -projectVersion = tail "\ - \ HADDOCK_VERSION" +projectVersion = HADDOCK_VERSION diff --git a/src/Makefile b/src/Makefile index b572e8ee..8f60a429 100644 --- a/src/Makefile +++ b/src/Makefile @@ -33,7 +33,7 @@ endif HsParser_HC_OPTS += -Onot HaddockParse_HC_OPTS += -Onot -HaddockVersion_HC_OPTS = -DHADDOCK_VERSION=$(ProjectVersion) +HaddockVersion_HC_OPTS = -D'HADDOCK_VERSION="$(ProjectVersion)"' HaddockVersion : ../mk/version.mk |