[Haskell-cafe] PVP question

Roman Cheplyaka roma at ro-che.info
Tue Dec 16 09:48:28 UTC 2014


On 16/12/14 11:40, Erik Hesselink wrote:
> On Mon, Dec 15, 2014 at 11:39 PM, Roman Cheplyaka <roma at ro-che.info> wrote:
>> On 16/12/14 00:31, Johan Tibell wrote:
>>> So yes, if you use open imports and allow new minor versions, your code
>>> might break. This is expected.
>>
>> One similarly could argue that "if you use functions in polymorphic
>> contexts and allow new minor versions, your code might break".
>>
>> This isn't in the PVP, but it's exactly in the same spirit, IMO.
> 
> I think this is a bad idea, since a "polymorphic context" (even if
> rigorously defined) is not clear from reading the code, you have to
> type check it in your head. The import style, on the other hand, is
> very simple to read and check if it matches the style of dependency
> version ranges.

Ok, this is a fair point.

Roman



More information about the Haskell-Cafe mailing list