
Ah, that looks very useful indeed, thank you.
On Fri, May 10, 2024 at 1:37 PM Andrew Lelechenko
See also a companion package https://hackage.haskell.org/package/file-io, which connects efficient and correct OsPath with ByteString-based readFile / writeFile.
Best regards, Andrew
On 9 May 2024, at 21:22, Hilco Wijbenga
wrote: Perfect! Yes, that's exactly what I'm looking for. Amazing that I completely missed that, it's not even that new.
On Thu, May 9, 2024 at 1:01 PM Henning Thielemann
wrote: On Thu, 9 May 2024, Hilco Wijbenga wrote:
We have Text and ByteString as alternatives to String but as soon as you want to do anything IO related (read a file, get a directory's content, et cetera) it seems your only option is to use String.
Maybe you are looking for the new versions of 'filepath' and 'directory' packages that use the OsString type from 'os-string'?
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.