module Paths_hoogle ( 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 [4,2,39] [] bindir, libdir, datadir, libexecdir, sysconfdir :: FilePath bindir = "C:\\Users\\ndmit_000\\AppData\\Roaming\\cabal\\bin" libdir = "C:\\Users\\ndmit_000\\AppData\\Roaming\\cabal\\i386-windows-ghc-7.8.3\\hoogle-4.2.39" datadir = "C:\\Users\\ndmit_000\\AppData\\Roaming\\cabal\\i386-windows-ghc-7.8.3\\hoogle-4.2.39" libexecdir = "C:\\Users\\ndmit_000\\AppData\\Roaming\\cabal\\hoogle-4.2.39" sysconfdir = "C:\\Users\\ndmit_000\\AppData\\Roaming\\cabal\\etc" getBinDir, getLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath getBinDir = catchIO (getEnv "hoogle_bindir") (\_ -> return bindir) getLibDir = catchIO (getEnv "hoogle_libdir") (\_ -> return libdir) getDataDir = catchIO (getEnv "hoogle_datadir") (\_ -> return datadir) getLibexecDir = catchIO (getEnv "hoogle_libexecdir") (\_ -> return libexecdir) getSysconfDir = catchIO (getEnv "hoogle_sysconfdir") (\_ -> return sysconfdir) getDataFileName :: FilePath -> IO FilePath getDataFileName name = do dir <- getDataDir return (dir ++ "\\" ++ name)