darcs-2.5.2: a distributed, interactive, smart revision control system

Darcs.External

Synopsis

Documentation

fetchFilePS :: String -> Cachable -> IO ByteStringSource

fetchFile fileOrUrl cache returns the content of its argument (either a file or an URL). If it has to download an url, then it will use a cache as required by its second argument.

fetchFileLazyPS :: String -> Cachable -> IO ByteStringSource

fetchFileLazyPS fileOrUrl cache lazily reads the content of its argument (either a file or an URL). Warning: this function may constitute a fd leak; make sure to force consumption of file contents to avoid that.

generateEmailSource

Arguments

:: Handle

handle to write email to

-> String

From

-> String

To

-> String

Subject

-> String

CC

-> Doc

body

-> IO () 

sendEmailDocSource

Arguments

:: String

from

-> String

to

-> String

subject

-> String

cc

-> String

send command

-> Maybe (Doc, Doc)

(content,bundle)

-> Doc

body

-> IO () 

Send an email, optionally containing a patch bundle (more precisely, its description and the bundle itself)

execSSH :: String -> String -> IO ExitCodeSource

Run a command on a remote location without passing it any input or reading its output. Return its ExitCode

darcsProgram :: IO StringSource

Get the name of the darcs executable (as supplied by getProgName)