Haskell Foldable Wats (Was: Add conspicuously missing Functor instances for tuples)
Augustsson, Lennart
Lennart.Augustsson at sc.com
Tue Feb 23 09:23:18 UTC 2016
The easiest way to import Data.Foldable unqualified is to rename the functions in it.
And, IMO, there is the original problem: Data.Foldable is full of Prelude name clashes.
-----Original Message-----
From: Libraries [mailto:libraries-bounces at haskell.org] On Behalf Of Henning Thielemann
Sent: 23 February 2016 08:25
To: David Feuer
Cc: Haskell Libraries; Ryan Scott
Subject: Re: Haskell Foldable Wats (Was: Add conspicuously missing Functor instances for tuples)
On Wed, 17 Feb 2016, David Feuer wrote:
> The big problem was the goal of allowing Data.Foldable and
> Data.Traversable to be imported unqualified. This was fine for
> Data.Traversable, but not for Data.Foldable. There are relatively few
> cases where the Traversable generalization is confusing or otherwise
> problematic, but Foldable is just too "wild".
>
> Once that dubious goal was set, consistency and efficiency demanded some of the other changes.
If step A requires step B, step C and step D that become worse and worse, then for me this proves that already step A was wrong. Importing Data.Foldable and Data.Traversable without any notice is a slight simplification in some cases, but the consequences are a big pain.
_______________________________________________
Libraries mailing list
Libraries at haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
This email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please delete all copies and notify the sender immediately. You may wish to refer to the incorporation details of Standard Chartered PLC, Standard Chartered Bank and their subsidiaries at http://www.standardchartered.com/en/incorporation-details.html
Insofar as this communication contains any market commentary, the market commentary has been prepared by sales and/or trading desk of Standard Chartered Bank or its affiliate. It is not and does not constitute research material, independent research, recommendation or financial advice. Any market commentary is for information purpose only and shall not be relied for any other purpose, and is subject to the relevant disclaimers available at http://wholesalebanking.standardchartered.com/en/utility/Pages/d-mkt.aspx
Insofar as this e-mail contains the term sheet for a proposed transaction, by responding affirmatively to this e-mail, you agree that you have understood the terms and conditions in the attached term sheet and evaluated the merits and risks of the transaction. We may at times also request you to sign on the term sheet to acknowledge in respect of the same.
Please visit http://wholesalebanking.standardchartered.com/en/capabilities/financialmarkets/Pages/doddfrankdisclosures.aspx for important information with respect to derivative products.
More information about the Libraries
mailing list