-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Various system utils lifted to EitherT
--
-- Various system functions lifted to EitherT. Provides higher level
-- functions to those in system-lifted.
@package system-util
@version 0.2
module System.Util
isRW :: FilePath -> EitherT IOException IO FilePath
isExe :: FilePath -> EitherT IOException IO FilePath
exeExists :: FilePath -> EitherT IOException IO FilePath
-- | Check if a executable pointed by the given environement variable
-- exists, and is executable.
getShellExe :: FilePath -> EitherT IOException IO FilePath
-- | Get configuration folder
-- http:stackoverflow.coma1024339/516184
getXdgConfigFolder :: EitherT IOException IO FilePath
getDotConfigFolder :: EitherT IOException IO FilePath
getHomeFolder :: EitherT IOException IO FilePath
getCurrFolder :: EitherT IOException IO FilePath
getCustomFolder :: Maybe FilePath -> EitherT IOException IO FilePath
-- | Check if a given directory exists, and if it features Read/Write
-- permissions. If it does not exist, create it.
checkOrCreate :: FilePath -> EitherT IOException IO FilePath
-- | Perform tidle expansion so that ~ = $HOME. It does not handle
-- tidle as $HOME in other places besides first caracter in FilePath
tidleExp :: FilePath -> EitherT IOException IO FilePath
normFilePath :: FilePath -> EitherT IOException IO FilePath
-- | Determine system shell: best effort. Tries $SHELL variable
-- first, then POSIX shell user entry, than in a last effort
-- binsh.
getDefaultShell :: EitherT IOException IO FilePath
instance SystemPosixUser EitherIOException
instance SystemEnvironment EitherIOException
instance SystemDirectory EitherIOException
instance IOT EitherIOException IO a0