[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33922: failing git-annex build
From: |
Timothy Sample |
Subject: |
bug#33922: failing git-annex build |
Date: |
Tue, 15 Jan 2019 13:48:05 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hi again,
Timothy Sample <address@hidden> writes:
> Ricardo Wurmus <address@hidden> 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