{-# LANGUAGE CPP #-}
{-# LANGUAGE NoRebindableSyntax #-}
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
module Paths_tensorflow_mnist (
    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 :: 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] -> [String] -> Version
Version [0,1,0,1] []
bindir, libdir, dynlibdir, datadir, libexecdir, sysconfdir :: FilePath

bindir :: String
bindir     = "/users/jmartin/tensorflow-haskell/.stack-work/install/x86_64-linux-dkd02fdc162c70291d6125e369abc988ea/5e2ece3a29489427fb722c067fe572497aeae38e906933c771247e4668d862ee/8.8.4/bin"
libdir :: String
libdir     = "/users/jmartin/tensorflow-haskell/.stack-work/install/x86_64-linux-dkd02fdc162c70291d6125e369abc988ea/5e2ece3a29489427fb722c067fe572497aeae38e906933c771247e4668d862ee/8.8.4/lib/x86_64-linux-ghc-8.8.4/tensorflow-mnist-0.1.0.1-Ka2McROae0VCNhi4suEc98"
dynlibdir :: String
dynlibdir  = "/users/jmartin/tensorflow-haskell/.stack-work/install/x86_64-linux-dkd02fdc162c70291d6125e369abc988ea/5e2ece3a29489427fb722c067fe572497aeae38e906933c771247e4668d862ee/8.8.4/lib/x86_64-linux-ghc-8.8.4"
datadir :: String
datadir    = "/users/jmartin/tensorflow-haskell/.stack-work/install/x86_64-linux-dkd02fdc162c70291d6125e369abc988ea/5e2ece3a29489427fb722c067fe572497aeae38e906933c771247e4668d862ee/8.8.4/share/x86_64-linux-ghc-8.8.4/tensorflow-mnist-0.1.0.1"
libexecdir :: String
libexecdir = "/users/jmartin/tensorflow-haskell/.stack-work/install/x86_64-linux-dkd02fdc162c70291d6125e369abc988ea/5e2ece3a29489427fb722c067fe572497aeae38e906933c771247e4668d862ee/8.8.4/libexec/x86_64-linux-ghc-8.8.4/tensorflow-mnist-0.1.0.1"
sysconfdir :: String
sysconfdir = "/users/jmartin/tensorflow-haskell/.stack-work/install/x86_64-linux-dkd02fdc162c70291d6125e369abc988ea/5e2ece3a29489427fb722c067fe572497aeae38e906933c771247e4668d862ee/8.8.4/etc"

getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath
getBinDir :: IO String
getBinDir = IO String -> (IOException -> IO String) -> IO String
forall a. IO a -> (IOException -> IO a) -> IO a
catchIO (String -> IO String
getEnv "tensorflow_mnist_bindir") (\_ -> String -> IO String
forall (m :: * -> *) a. Monad m => a -> m a
return String
bindir)
getLibDir :: IO String
getLibDir = IO String -> (IOException -> IO String) -> IO String
forall a. IO a -> (IOException -> IO a) -> IO a
catchIO (String -> IO String
getEnv "tensorflow_mnist_libdir") (\_ -> String -> IO String
forall (m :: * -> *) a. Monad m => a -> m a
return String
libdir)
getDynLibDir :: IO String
getDynLibDir = IO String -> (IOException -> IO String) -> IO String
forall a. IO a -> (IOException -> IO a) -> IO a
catchIO (String -> IO String
getEnv "tensorflow_mnist_dynlibdir") (\_ -> String -> IO String
forall (m :: * -> *) a. Monad m => a -> m a
return String
dynlibdir)
getDataDir :: IO String
getDataDir = IO String -> (IOException -> IO String) -> IO String
forall a. IO a -> (IOException -> IO a) -> IO a
catchIO (String -> IO String
getEnv "tensorflow_mnist_datadir") (\_ -> String -> IO String
forall (m :: * -> *) a. Monad m => a -> m a
return String
datadir)
getLibexecDir :: IO String
getLibexecDir = IO String -> (IOException -> IO String) -> IO String
forall a. IO a -> (IOException -> IO a) -> IO a
catchIO (String -> IO String
getEnv "tensorflow_mnist_libexecdir") (\_ -> String -> IO String
forall (m :: * -> *) a. Monad m => a -> m a
return String
libexecdir)
getSysconfDir :: IO String
getSysconfDir = IO String -> (IOException -> IO String) -> IO String
forall a. IO a -> (IOException -> IO a) -> IO a
catchIO (String -> IO String
getEnv "tensorflow_mnist_sysconfdir") (\_ -> String -> IO String
forall (m :: * -> *) a. Monad m => a -> m a
return String
sysconfdir)

getDataFileName :: FilePath -> IO FilePath
getDataFileName :: String -> IO String
getDataFileName name :: String
name = do
  String
dir <- IO String
getDataDir
  String -> IO String
forall (m :: * -> *) a. Monad m => a -> m a
return (String
dir String -> String -> String
forall a. [a] -> [a] -> [a]
++ "/" String -> String -> String
forall a. [a] -> [a] -> [a]
++ String
name)