[Haskell-cafe] Re: How Albus Dumbledore would sell Haskell

Cale Gibbard cgibbard at gmail.com
Mon Apr 23 00:57:58 EDT 2007


On 21/04/07, apfelmus <apfelmus at quantentunnel.de> wrote:
> Dan Weston wrote:
> > -- Why is this not in Prelude?
> > dup x = (x,x)
>
> It is (almost). It's called
>
>   join (,)
>
It's unfortunate that the Monad instance for ((->) e) isn't in the Prelude.


More information about the Haskell-Cafe mailing list