Naming of HEq_sc

Matthew Pickering matthewtpickering at gmail.com
Fri Dec 29 22:25:44 UTC 2017


Thanks Richard.

I created D4280 if anyone else wants to weigh in.

Matt

On Fri, Dec 29, 2017 at 9:16 PM, Richard Eisenberg <rae at cs.brynmawr.edu> wrote:
> This smells like my doing. My best guess is that I copied from Coercible_sc, just a bit further down in TysWiredIn. I don't think there's more rhyme or reason to the choice.
>
> Richard
>
>> On Dec 29, 2017, at 2:31 PM, Matthew Pickering <matthewtpickering at gmail.com> wrote:
>>
>> Hi all,
>>
>> Does anyone know why the *record selector* `HEq_sc` started with a
>> capital letter?
>>
>> Would it be sensible to rename it to start with a lower case letter
>> and perhaps mention that it is a selector in the name?
>>
>> git grep "HEq_sc" doesn't yield any explanation, I could only work
>> this out from reading the source doe.
>>
>> I propose "heq_sel" could be more self-explanatory.
>>
>> Cheers,
>>
>> Matt
>> _______________________________________________
>> ghc-devs mailing list
>> ghc-devs at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>


More information about the ghc-devs mailing list