From 39cf9edec74690e6401c60465b35a96bbf7107a5 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 12 Aug 2004 12:08:23 +0000 Subject: [haddock @ 2004-08-12 12:08:23 by simonmar] Avoid using string-gap tricks. --- src/HaddockVersion.hs | 3 +-- 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 -- cgit v1.2.3