aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock
diff options
context:
space:
mode:
authorSimon Hengel <sol@typeful.net>2014-08-22 12:14:16 +0800
committerSimon Hengel <sol@typeful.net>2014-08-22 12:14:16 +0800
commite99252026ad1b50215b86ffe30038351ca486bfa (patch)
treed0a88fd913edd590fefb952d635871f11afda41b /src/Haddock
parent2c3f2b47fa5e66f5503b5418415e2fa75d134689 (diff)
Move Haddock API to a separate package
Diffstat (limited to 'src/Haddock')
-rw-r--r--src/Haddock/Version.hs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Haddock/Version.hs b/src/Haddock/Version.hs
index f4729c7d..2ef3a257 100644
--- a/src/Haddock/Version.hs
+++ b/src/Haddock/Version.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Haddock.Version
@@ -12,11 +13,17 @@ module Haddock.Version (
projectName, projectVersion, projectUrl
) where
+#ifdef IN_GHC_TREE
import Paths_haddock ( version )
+#else
+import Paths_haddock_api ( version )
+#endif
import Data.Version ( showVersion )
-projectName, projectUrl :: String
+projectName :: String
projectName = "Haddock"
+
+projectUrl :: String
projectUrl = "http://www.haskell.org/haddock/"
projectVersion :: String