-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Use RawFilePath instead of FilePath -- -- Please see README.md @package rawfilepath @version 0.1.0.0 -- | Higher-level API for the RawFilePath-variants of functions in -- the unix module. module System.RawFilePath -- | A literal POSIX file path type RawFilePath = ByteString -- | Creates a new process to run the specified command with the given -- arguments, and waits for it to finish. Throws an exception if the -- process returns a nonzero exit code. -- --
--   *System.RawFilePath> callProcess "ls" ["-a", "src"]
--   .  ..  System
--   
callProcess :: RawFilePath -> [ByteString] -> IO () -- | Same as callProcess except the child process will share the -- parent's stdout and stderr, meaning it won't print anything. callProcessSilent :: RawFilePath -> [ByteString] -> IO ExitCode -- | Runs a command, reads its standard output strictly, blocking until the -- process terminates, and returns the output as ByteString. -- --
--   *System.RawFilePath> readProcess "date" ["+%s"]
--   "1469999314\n"
--   
readProcess :: RawFilePath -> [ByteString] -> IO ByteString -- | A 'safer' approach to readProcess. Depending on the exit status -- of the process, this function will return output either from stderr or -- stdout. -- --
--   *System.RawFilePath> readProcessEither "date" ["%s"]
--   Left "date: invalid date \226\128\152%s\226\128\153\n"
--   *System.RawFilePath> readProcessEither "date" ["+%s"]
--   Right "1469999817\n"
--   
readProcessEither :: RawFilePath -> [ByteString] -> IO (Either ByteString ByteString) -- | Get a list of files in the specified directory, excluding "." and ".." -- --
--   *System.RawFilePath> listDirectory "src"
--   ["..","System","."]
--   
listDirectory :: RawFilePath -> IO [RawFilePath] -- | Get a list of files in the specified directory, including "." and ".." -- --
--   *System.RawFilePath> getDirectoryFiles "src"
--   ["..","System","."]
--   
getDirectoryFiles :: RawFilePath -> IO [RawFilePath] -- | Recursively get all files in all subdirectories of the specified -- directory. -- --
--   *System.RawFilePath> getDirectoryFilesRecursive "src"
--   ["src/System/RawFilePath.hs"]
--   
getDirectoryFilesRecursive :: RawFilePath -> IO [RawFilePath] -- | Copy a file from the source path to the destination path. copyFile :: RawFilePath -> RawFilePath -> IO () -- | Returns the current user's home directory. getHomeDirectory :: IO RawFilePath -- | Returns True if the argument file exists and is not a -- directory. doesFileExist :: RawFilePath -> IO Bool -- | Returns True if the argument file exists and is a directory. doesDirectoryExist :: RawFilePath -> IO Bool -- | Change the working directory to the given path. setCurrentDirectory :: RawFilePath -> IO () -- | A function that "tries" to remove a file. If the file does not exist, -- nothing happens. tryRemoveFile :: RawFilePath -> IO () -- | A variant of Data.ByteString from the bytestring -- package that provides file I/O functions with RawFilePath -- instead of FilePath. module Data.ByteString.RawFilePath -- | A literal POSIX file path type RawFilePath = ByteString -- | Read an entire file at the RawFilePath strictly into a -- ByteString. readFile :: RawFilePath -> IO ByteString -- | Write a ByteString to a file at the RawFilePath. writeFile :: RawFilePath -> ByteString -> IO () -- | Append a ByteString to a file at the RawFilePath. appendFile :: RawFilePath -> ByteString -> IO () -- | Acquire a file handle and perform an I/O action. The file will be -- closed on exit or when this I/O action throws an exception. withFile :: RawFilePath -> IOMode -> (Handle -> IO r) -> IO r