<div dir="ltr">On Tue, Jul 8, 2014 at 7:50 AM, Magnus Therning <span dir="ltr"><<a href="mailto:magnus@therning.org" target="_blank">magnus@therning.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Sat, Jul 05, 2014 at 05:52:30PM +0200, Bardur Arantsson wrote:<br>
> Hi all,<br>
><br>
> Is there a variant of withFile which takes a ByteString?<br>
><br>
> (I'm aware that I could use the lower-level System.Posix FD-based<br>
> functions, but if someone already has a package out there, I'd rather<br>
> not.)<br>
<br>
</div>You might want to have a look at the Filesystem module, in<br>
system-fileio[^1].  It's not exactly what you ask for, but it seems to<br>
be a rather good way of dealing with filesystem paths.<br></blockquote><div><br></div><div style>Nothing against system-fileio, but it's pretty much the opposite of what Bardur was asking for.  It doesn't use ByteStrings and adds even more abstraction over the basic System.IO functions.  IMO there are exceedingly few overlapping target cases between RawFilePath and system-fileio.</div>
<div style><br></div><div style>John L.</div></div></div></div>