module Paths_transformers_compat ( version, getBinDir, getLibDir, getDataDir, getLibexecDir, getDataFileName ) 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,1,1,1], versionTags = []} bindir, libdir, datadir, libexecdir :: FilePath bindir = "/srv/hackage/var/build/cache/inst/bin" libdir = "/srv/hackage/var/build/cache/inst/lib/transformers-compat-0.1.1.1/ghc-7.6.3" datadir = "/srv/hackage/var/build/cache/inst/share/transformers-compat-0.1.1.1" libexecdir = "/srv/hackage/var/build/cache/inst/libexec" getBinDir, getLibDir, getDataDir, getLibexecDir :: IO FilePath getBinDir = catchIO (getEnv "transformers_compat_bindir") (\_ -> return bindir) getLibDir = catchIO (getEnv "transformers_compat_libdir") (\_ -> return libdir) getDataDir = catchIO (getEnv "transformers_compat_datadir") (\_ -> return datadir) getLibexecDir = catchIO (getEnv "transformers_compat_libexecdir") (\_ -> return libexecdir) getDataFileName :: FilePath -> IO FilePath getDataFileName name = do dir <- getDataDir return (dir ++ "/" ++ name)