Hi again, Timothy Sample <[email protected]> writes:
> Ricardo Wurmus <[email protected]> writes: >> >> [...] >> >> The most appropriate line to modify would then be this: >> >> confs = map (path </>) $ filter (".conf" `isSuffixOf`) fs >> >> where “fs” is the list of FilePath values (strings). I think you can >> just do this: >> >> confs = map (path </>) $ filter (".conf" `isSuffixOf`) (sort fs) >> >> because “fs” is of type [FilePath], which is [String], which is sortable >> via “sort” as String has an Ord instance. >> >> What do you think? > > I thought about this approach, but I was worried it wouldn’t be so easy. > What you suggest looks pretty straight-forward though. I will test > everything with this approach and report back. If it works, I agree > that it is better. The results are in and this seems to do the trick, too. I built GHC and the packages I mentioned before on two different machines, and everything came out identical. Hence, LGTM. -- Tim
