adarqui 2017-02-24 21:14:06
hey, using withSystemTempFile, is there a way to execute inside that? it's locking the temp file, so i can't write to it when i execute something with System.Process.. ie, withSystemTempFile "blah.txt" $ \tmp_file _ -> r <- createProcess (proc "something_that_writes_to_file" [tmp_file])
adarqui 2017-02-24 21:14:38
or should i just do that manually, openSystemTempFile, execute, unlink it .. maybe just use bracket or something
sternmull 2017-02-24 21:15:43
adarqui: You could pass the handle as stout or stdin.
adarqui 2017-02-24 21:16:34
ah cool
adarqui 2017-02-24 21:16:41
ill try that, thanks sternmull
sternmull 2017-02-24 21:17:09
and if you need a named file instead you could use withTempDirectory and just tell your process to create its file there