    module Paths_citeproc_hs (
        version,
        getBinDir, getLibDir, getDataDir, getLibexecDir,
        getDataFileName
      ) where

    import Data.Version (Version(..))
    import System.Environment (getEnv)

    version :: Version
    version = Version {versionBranch = [0,2], versionTags = []}

    bindir, libdir, datadir, libexecdir :: FilePath

    bindir     = "/usr/local/bin"
    libdir     = "/usr/local/lib/citeproc-hs-0.2/ghc-6.10.4"
    datadir    = "/usr/local/share/citeproc-hs-0.2"
    libexecdir = "/usr/local/libexec"

    getBinDir, getLibDir, getDataDir, getLibexecDir :: IO FilePath
    getBinDir = catch (getEnv "citeproc_hs_bindir") (\_ -> return bindir)
    getLibDir = catch (getEnv "citeproc_hs_libdir") (\_ -> return libdir)
    getDataDir = catch (getEnv "citeproc_hs_datadir") (\_ -> return datadir)
    getLibexecDir = catch (getEnv "citeproc_hs_libexecdir") (\_ -> return libexecdir)

    getDataFileName :: FilePath -> IO FilePath
    getDataFileName name = do
      dir <- getDataDir
      return (dir ++ "/" ++ name)