[darcs-devel] [patch1664] make readTextFile strict in the content by splitting it into lines
Guillaume Hoffmann
bugs at darcs.net
Tue Mar 27 20:23:46 UTC 2018
Guillaume Hoffmann <guillaumh at gmail.com> added the comment:
Can the same function be used in Darcs.UI.Commands.ShowAuthor instead of
Ratified.readFile ?
Also I would just go ahead and nuke that Ratified module, along with
contrib/darcs-errors.hlint . The idea is to suppress hlint Errors like
"avoid hGetContents" and "avoid Prelude.readFilen", but hlint is
currently throwing 10.000 warnings, and there is probably no general
rule of which ones to silent.
Maybe it would be better to comment the places where we use these
functions and say why file contents is guaranteed to be consumed in each
case.
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1664>
__________________________________
More information about the darcs-devel
mailing list