module Paths_pandoc ( 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 [1,16,0,1] [] bindir, libdir, datadir, libexecdir, sysconfdir :: FilePath bindir = "/Users/jgm/Library/Haskell/bin" libdir = "/Users/jgm/Library/Haskell/ghc-7.10.2-x86_64/lib/pandoc-1.16" datadir = "/Users/jgm/Library/Haskell/share/ghc-7.10.2-x86_64/pandoc-1.16" libexecdir = "/Users/jgm/Library/Haskell/libexec" sysconfdir = "/Users/jgm/Library/Haskell/etc" getBinDir, getLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath getBinDir = catchIO (getEnv "pandoc_bindir") (\_ -> return bindir) getLibDir = catchIO (getEnv "pandoc_libdir") (\_ -> return libdir) getDataDir = catchIO (getEnv "pandoc_datadir") (\_ -> return datadir) getLibexecDir = catchIO (getEnv "pandoc_libexecdir") (\_ -> return libexecdir) getSysconfDir = catchIO (getEnv "pandoc_sysconfdir") (\_ -> return sysconfdir) getDataFileName :: FilePath -> IO FilePath getDataFileName name = do dir <- getDataDir return (dir ++ "/" ++ name)