Why the Prelude must die
David House
dmhouse at gmail.com
Sun Mar 25 11:33:51 EDT 2007
On 25/03/07, Ian Lynagh <igloo at earth.li> wrote:
> I've submitted:
>
> http://hackage.haskell.org/trac/haskell-prime/ticket/124
>
> which I hope covers the essence of the result of this thread.
I'd hate to have to import things like Data.Function for such trivial
functions as (.) and ($), which are so often used that they become
almost like control structures and keywords in themselves. What did
people think of my idea of a stripped down prelude containing
primarily the functions like (.) and ($)? Here'd be my list:
1. Almost like control structures
otherwise
(.)
flip
($)
2. To make including literals sane
Char
String
Int
Integer
Num(..)
3. Other basic functions
Eq(..)
Ord((<), (>), (<=), (>=))
Show(show)
4. Miscellaneous
id
const
undefined
Of course, the precise details would be debateable.
--
-David House, dmhouse at gmail.com
More information about the Libraries
mailing list