I'm still not happy about the number of occurences of
"./" ++
in this file (I know you've only added one, but it'd be good to fix
paths in one place).
I can see 3 occurences in Annotate.hs. Maybe you could use the "fix"
function in src/Darcs/Patch/TouchesFiles.hs (perhaps moving that
function to a more suitable Module). Our goal is to improve the Darcs'
codebase when we can - this is a good chance!
A more invasive change would be to create a new datatype, where the
constructors determine whether or not a leading "./" has been added.
That way, GHC can catch if we try to apply a function expecting "./"s to
a plain relative filepath.
The test looks ok, the grep is perhaps a bit vague, but it'll probably do.
|