Export ($!) from Data.Function

David Feuer david.feuer at gmail.com
Fri Apr 24 14:09:07 UTC 2015


Agreed. I think it would be nice to gather up seq-things and par-things
into a nice piece of module hierarchy in some fashion. I make no claim to
know how to do so nicely.

On Fri, Apr 24, 2015 at 9:51 AM, Henning Thielemann <
lemming at henning-thielemann.de> wrote:

>
> On Fri, 24 Apr 2015, Yuras Shumovich wrote:
>
>  Right now ($!) operator can be imported either from Prelude or GHC.Base.
>> The later is specific to GHC, so it makes sense to avoid it.
>>
>> There are reasons to avoid Prelude too (e.g. because it pollutes name
>> space, changes too often, etc.) We need a home module for all identifies
>> from Prelude, so that one can import them without importing Prelude.
>>
>
> I don't understand. If you don't like to import it, you can
>   import Prelude hiding (($!))
>
> If you have disabled automatic import of Prelude, you can still import it
> selectively by:
>   import Prelude (($!))
>
>
>  Data.Functor seems to be a good candidate for ($!) operator home module.
>> It already exports ($) operator.
>>
>
> I think it would better fit in a module for 'seq' and friends.
> Unfortunately there is no such module yet.
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20150424/926e7f4f/attachment-0001.html>


More information about the Libraries mailing list