|
readFileText = liftIO . T.readFile |
uses
Data.Text.IO's
readFile.
This might be a source of problem, as described here:
https://www.snoyman.com/blog/2016/12/beware-of-readfile
Solutions could include
Right now, someone would have to read the Relude.File documentation, click on the link to the Data.Text.IO documentation, and then scroll up to see the text about locale.
relude/src/Relude/File.hs
Line 48 in 57c865d
Data.Text.IO'sreadFile.This might be a source of problem, as described here:
https://www.snoyman.com/blog/2016/12/beware-of-readfile
Solutions could include
Data.ByteString.IO(as is done in http://hackage.haskell.org/package/classy-prelude-1.5.0/docs/src/ClassyPrelude.html#readFile possibly providing areadFileUtf8convenience)readFileWithSystemLocale?)Right now, someone would have to read the
Relude.Filedocumentation, click on the link to theData.Text.IOdocumentation, and then scroll up to see the text about locale.