{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module      :  Haddock.Version
-- Copyright   :  (c) Simon Marlow 2003
-- License     :  BSD-like
--
-- Maintainer  :  haddock@projects.haskell.org
-- Stability   :  experimental
-- Portability :  portable
-----------------------------------------------------------------------------
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 :: String
projectName :: String
projectName = String
"Haddock"

projectUrl :: String
projectUrl :: String
projectUrl  = String
"http://www.haskell.org/haddock/"

projectVersion :: String
projectVersion :: String
projectVersion = Version -> String
showVersion Version
version