summaryrefslogtreecommitdiff
path: root/dist/build/tests/autogen/Paths_openpgp_asciiarmor.hs
diff options
context:
space:
mode:
Diffstat (limited to 'dist/build/tests/autogen/Paths_openpgp_asciiarmor.hs')
-rw-r--r--dist/build/tests/autogen/Paths_openpgp_asciiarmor.hs50
1 files changed, 50 insertions, 0 deletions
diff --git a/dist/build/tests/autogen/Paths_openpgp_asciiarmor.hs b/dist/build/tests/autogen/Paths_openpgp_asciiarmor.hs
new file mode 100644
index 0000000..ff78bf7
--- /dev/null
+++ b/dist/build/tests/autogen/Paths_openpgp_asciiarmor.hs
@@ -0,0 +1,50 @@
1{-# LANGUAGE CPP #-}
2{-# LANGUAGE NoRebindableSyntax #-}
3{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
4module Paths_openpgp_asciiarmor (
5 version,
6 getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
7 getDataFileName, getSysconfDir
8 ) where
9
10import qualified Control.Exception as Exception
11import Data.Version (Version(..))
12import System.Environment (getEnv)
13import Prelude
14
15#if defined(VERSION_base)
16
17#if MIN_VERSION_base(4,0,0)
18catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a
19#else
20catchIO :: IO a -> (Exception.Exception -> IO a) -> IO a
21#endif
22
23#else
24catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a
25#endif
26catchIO = Exception.catch
27
28version :: Version
29version = Version [0,1,1] []
30bindir, libdir, dynlibdir, datadir, libexecdir, sysconfdir :: FilePath
31
32bindir = "/home/clint/tmp/temp-tardbus/bin"
33libdir = "/home/clint/tmp/temp-tardbus/lib/x86_64-linux-ghc-8.4.4/openpgp-asciiarmor-0.1.1-KE0XG6usiGJ3OyLbw5mHNs-tests"
34dynlibdir = "/home/clint/tmp/temp-tardbus/lib/x86_64-linux-ghc-8.4.4"
35datadir = "/home/clint/tmp/temp-tardbus/share/x86_64-linux-ghc-8.4.4/openpgp-asciiarmor-0.1.1"
36libexecdir = "/home/clint/tmp/temp-tardbus/libexec/x86_64-linux-ghc-8.4.4/openpgp-asciiarmor-0.1.1"
37sysconfdir = "/home/clint/tmp/temp-tardbus/etc"
38
39getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath
40getBinDir = catchIO (getEnv "openpgp_asciiarmor_bindir") (\_ -> return bindir)
41getLibDir = catchIO (getEnv "openpgp_asciiarmor_libdir") (\_ -> return libdir)
42getDynLibDir = catchIO (getEnv "openpgp_asciiarmor_dynlibdir") (\_ -> return dynlibdir)
43getDataDir = catchIO (getEnv "openpgp_asciiarmor_datadir") (\_ -> return datadir)
44getLibexecDir = catchIO (getEnv "openpgp_asciiarmor_libexecdir") (\_ -> return libexecdir)
45getSysconfDir = catchIO (getEnv "openpgp_asciiarmor_sysconfdir") (\_ -> return sysconfdir)
46
47getDataFileName :: FilePath -> IO FilePath
48getDataFileName name = do
49 dir <- getDataDir
50 return (dir ++ "/" ++ name)