[Haskell-cafe] System.IO but not with Data.String?

Andrew Lelechenko andrew.lelechenko at gmail.com
Fri May 10 20:37:42 UTC 2024


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 <hilco.wijbenga at gmail.com> 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
> <lemming at henning-thielemann.de> 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.



More information about the Haskell-Cafe mailing list