{-# LANGUAGE CPP #-} {-# LANGUAGE NoRebindableSyntax #-} {-# OPTIONS_GHC -fno-warn-missing-import-lists #-} module Paths_lnd_client ( version, getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getDataFileName, getSysconfDir ) where import qualified Control.Exception as Exception import Data.Version (Version(..)) import System.Environment (getEnv) import Prelude #if defined(VERSION_base) #if MIN_VERSION_base(4,0,0) catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a #else catchIO :: IO a -> (Exception.Exception -> IO a) -> IO a #endif #else catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a #endif catchIO :: forall a. IO a -> (IOException -> IO a) -> IO a catchIO = IO a -> (IOException -> IO a) -> IO a forall e a. Exception e => IO a -> (e -> IO a) -> IO a Exception.catch version :: Version version :: Version version = [Int] -> [[Char]] -> Version Version [Int 0,Int 1,Int 0,Int 1] [] bindir, libdir, dynlibdir, datadir, libexecdir, sysconfdir :: FilePath bindir :: [Char] bindir = [Char] "/home/timcf/.cabal/bin" libdir :: [Char] libdir = [Char] "/home/timcf/.cabal/lib/x86_64-linux-ghc-9.0.2/lnd-client-0.1.0.1-inplace-lnd-client-tkit" dynlibdir :: [Char] dynlibdir = [Char] "/home/timcf/.cabal/lib/x86_64-linux-ghc-9.0.2" datadir :: [Char] datadir = [Char] "/home/timcf/.cabal/share/x86_64-linux-ghc-9.0.2/lnd-client-0.1.0.1" libexecdir :: [Char] libexecdir = [Char] "/home/timcf/.cabal/libexec/x86_64-linux-ghc-9.0.2/lnd-client-0.1.0.1" sysconfdir :: [Char] sysconfdir = [Char] "/home/timcf/.cabal/etc" getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath getBinDir :: IO [Char] getBinDir = IO [Char] -> (IOException -> IO [Char]) -> IO [Char] forall a. IO a -> (IOException -> IO a) -> IO a catchIO ([Char] -> IO [Char] getEnv [Char] "lnd_client_bindir") (\IOException _ -> [Char] -> IO [Char] forall (m :: * -> *) a. Monad m => a -> m a return [Char] bindir) getLibDir :: IO [Char] getLibDir = IO [Char] -> (IOException -> IO [Char]) -> IO [Char] forall a. IO a -> (IOException -> IO a) -> IO a catchIO ([Char] -> IO [Char] getEnv [Char] "lnd_client_libdir") (\IOException _ -> [Char] -> IO [Char] forall (m :: * -> *) a. Monad m => a -> m a return [Char] libdir) getDynLibDir :: IO [Char] getDynLibDir = IO [Char] -> (IOException -> IO [Char]) -> IO [Char] forall a. IO a -> (IOException -> IO a) -> IO a catchIO ([Char] -> IO [Char] getEnv [Char] "lnd_client_dynlibdir") (\IOException _ -> [Char] -> IO [Char] forall (m :: * -> *) a. Monad m => a -> m a return [Char] dynlibdir) getDataDir :: IO [Char] getDataDir = IO [Char] -> (IOException -> IO [Char]) -> IO [Char] forall a. IO a -> (IOException -> IO a) -> IO a catchIO ([Char] -> IO [Char] getEnv [Char] "lnd_client_datadir") (\IOException _ -> [Char] -> IO [Char] forall (m :: * -> *) a. Monad m => a -> m a return [Char] datadir) getLibexecDir :: IO [Char] getLibexecDir = IO [Char] -> (IOException -> IO [Char]) -> IO [Char] forall a. IO a -> (IOException -> IO a) -> IO a catchIO ([Char] -> IO [Char] getEnv [Char] "lnd_client_libexecdir") (\IOException _ -> [Char] -> IO [Char] forall (m :: * -> *) a. Monad m => a -> m a return [Char] libexecdir) getSysconfDir :: IO [Char] getSysconfDir = IO [Char] -> (IOException -> IO [Char]) -> IO [Char] forall a. IO a -> (IOException -> IO a) -> IO a catchIO ([Char] -> IO [Char] getEnv [Char] "lnd_client_sysconfdir") (\IOException _ -> [Char] -> IO [Char] forall (m :: * -> *) a. Monad m => a -> m a return [Char] sysconfdir) getDataFileName :: FilePath -> IO FilePath getDataFileName :: [Char] -> IO [Char] getDataFileName [Char] name = do [Char] dir <- IO [Char] getDataDir [Char] -> IO [Char] forall (m :: * -> *) a. Monad m => a -> m a return ([Char] dir [Char] -> [Char] -> [Char] forall a. [a] -> [a] -> [a] ++ [Char] "/" [Char] -> [Char] -> [Char] forall a. [a] -> [a] -> [a] ++ [Char] name)