1{-# LANGUAGE CPP #-}
2-----------------------------------------------------------------------------
3-- |
4-- Module      :  Haddock.Version
5-- Copyright   :  (c) Simon Marlow 2003
6-- License     :  BSD-like
7--
8-- Maintainer  :  haddock@projects.haskell.org
9-- Stability   :  experimental
10-- Portability :  portable
11-----------------------------------------------------------------------------
12module Haddock.Version (
13  projectName, projectVersion, projectUrl
14) where
15
16#ifdef IN_GHC_TREE
17import Paths_haddock ( version )
18#else
19import Paths_haddock_api ( version )
20#endif
21import Data.Version  ( showVersion )
22
23projectName :: String
24projectName = "Haddock"
25
26projectUrl :: String
27projectUrl  = "http://www.haskell.org/haddock/"
28
29projectVersion :: String
30projectVersion = showVersion version
31