Re: Resolve name collsion of `first` and `second` by Control.Arrow and Data.Bifunctor

박신환 ndospark320 at naver.com
Wed May 9 06:34:11 UTC 2018


It still seems worthy to add the aliases for Data.Bifunctor.first and Data.Bifunctor.second. Hence:
 
import Control.Arrow
import Data.Bifunctor hiding (first, second)
 
and we don't need to have the methods qualified. 
 
-----Original Message-----
From: "Eric Mertens"<emertens at gmail.com>
To: "Alexandre Rodrigues"<alexandrer_b at outlook.com>;
Cc: "박신환"<ndospark320 at naver.com>; "Haskell Libraries"<libraries at haskell.org>;
Sent: 2018-05-09 (수) 01:04:12
Subject: Re: Resolve name collsion of `first` and `second` by Control.Arrow and Data.Bifunctor
 
I'm opposed to changing the names in either module. In modern code it should be fairly rare to import Control.Arrow. In the cases that both are needed qualified imports are available, and it wouldn't be worth breaking existing code by renaming the class methods of Bifunctor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20180509/96fcbeac/attachment.html>


More information about the Libraries mailing list