packages feed

scyther-proof-0.3.0: interactive-only-src/Paths_scyther_proof.hs

module Paths_scyther_proof (
    version,
    getBinDir, getLibDir, getDataDir, getLibexecDir,
    getDataFileName
  ) where

import Data.Version (Version(..))
import System.Environment (getEnv)

version :: Version
version = Version {versionBranch = [0,3,0], versionTags = []}

bindir, libdir, datadir, libexecdir :: FilePath

bindir     = "."
libdir     = "."
datadir    = "data"
libexecdir = "."

getBinDir, getLibDir, getDataDir, getLibexecDir :: IO FilePath
getBinDir = catch (getEnv "scyther_proof_bindir") (\_ -> return bindir)
getLibDir = catch (getEnv "scyther_proof_libdir") (\_ -> return libdir)
getDataDir = catch (getEnv "scyther_proof_datadir") (\_ -> return datadir)
getLibexecDir = catch (getEnv "scyther_proof_libexecdir") (\_ -> return libexecdir)

getDataFileName :: FilePath -> IO FilePath
getDataFileName name = do
  dir <- getDataDir
  return (dir ++ "/" ++ name)