module Paths_cargs ( version, getBinDir, getLibDir, getDataDir, getLibexecDir, getDataFileName ) where import Data.Version (Version(..)) import System.Environment (getEnv) version :: Version version = Version {versionBranch = [1,0,0], versionTags = []} bindir, libdir, datadir, libexecdir :: FilePath bindir = "/home/dino/bin/cargs-1.0.0/bin" libdir = "/home/dino/bin/cargs-1.0.0/lib/cargs-1.0.0/ghc-6.10.1" datadir = "/home/dino/bin/cargs-1.0.0/share/cargs-1.0.0" libexecdir = "/home/dino/bin/cargs-1.0.0/libexec" getBinDir, getLibDir, getDataDir, getLibexecDir :: IO FilePath getBinDir = catch (getEnv "cargs_bindir") (\_ -> return bindir) getLibDir = catch (getEnv "cargs_libdir") (\_ -> return libdir) getDataDir = catch (getEnv "cargs_datadir") (\_ -> return datadir) getLibexecDir = catch (getEnv "cargs_libexecdir") (\_ -> return libexecdir) getDataFileName :: FilePath -> IO FilePath getDataFileName name = do dir <- getDataDir return (dir ++ "/" ++ name)