[Haskell-cafe] Equality Question

Felipe Lessa felipe.lessa at gmail.com
Mon Oct 15 19:00:51 EDT 2007


On 10/15/07, PR Stanley <prstanley at ntlworld.com> wrote:
> Hi
> is const = id?

You answered the question yourself

> const 'x' 'y'
> 'x'
> id 'x'
> 'x'

const has another parameter. Their types are

id    :: a -> a
const :: a -> b -> a

HTH,

-- 
Felipe.


More information about the Haskell-Cafe mailing list