module Paths_GenI ( version, getBinDir, getLibDir, getDataDir, getLibexecDir, getDataFileName, getSysconfDir ) where import qualified Control.Exception as Exception import Data.Version (Version(..)) import System.Environment (getEnv) import Prelude catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a catchIO = Exception.catch version :: Version version = Version {versionBranch = [0,24], versionTags = []} bindir, libdir, datadir, libexecdir, sysconfdir :: FilePath bindir = "/usr/local/tmp/archive/install/bin" libdir = "/usr/local/tmp/archive/install/lib/i386-linux-ghc-7.6.2/GenI-0.24" datadir = "/usr/local/tmp/archive/install/share/i386-linux-ghc-7.6.2/GenI-0.24" libexecdir = "/usr/local/tmp/archive/install/libexec" sysconfdir = "/usr/local/tmp/archive/install/etc" getBinDir, getLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath getBinDir = catchIO (getEnv "GenI_bindir") (\_ -> return bindir) getLibDir = catchIO (getEnv "GenI_libdir") (\_ -> return libdir) getDataDir = catchIO (getEnv "GenI_datadir") (\_ -> return datadir) getLibexecDir = catchIO (getEnv "GenI_libexecdir") (\_ -> return libexecdir) getSysconfDir = catchIO (getEnv "GenI_sysconfdir") (\_ -> return sysconfdir) getDataFileName :: FilePath -> IO FilePath getDataFileName name = do dir <- getDataDir return (dir ++ "/" ++ name)