You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building summoner using relude 1.2.0.0, the following warning occurs:
[11 of 23] Compiling Summoner.Source
src/Summoner/Source.hs:92:35: warning: [-Wdeprecations]
In the use of ‘readFileText’
(imported from Prelude, but defined in relude-1.2.0.0:Relude.File):
"'readFileText' depends on the system's locale settings and can throw unexpected exceptions.
Use 'readFileBS' instead."
|
92 | Local path -> catch (Just <$> readFileText path) (localError path)
| ^^^^^^^^^^^^
The relude Changelog mentions this change in v1.1.0.0 and also suggests a fix:
Use readFileBS / readFileLBS instead to convert to Text / LText / String using decodeUtf8 and similar functions.
With that change, the supported version for relude can be bumped to 1.2.0.0
The text was updated successfully, but these errors were encountered:
When building
summoner
usingrelude 1.2.0.0
, the following warning occurs:The relude Changelog mentions this change in v1.1.0.0 and also suggests a fix:
With that change, the supported version for
relude
can be bumped to1.2.0.0
The text was updated successfully, but these errors were encountered: