"class []" proposal Re: [Haskell-cafe] One thought: Num to 0as ? to list?

Tomasz Zielonka tomasz.zielonka at gmail.com
Wed Aug 23 12:05:21 EDT 2006


On Wed, Aug 23, 2006 at 11:11:59PM +1000, Donald Bruce Stewart wrote:
> So, from vim the following source:
> 
>     f (x,y,z) a b = y + a + b
> 
> hit, 'ty' and its replaced with:
> 
>     f :: forall b c a. (Num b) => (a, b, c) -> b -> b -> b
>     f (x,y,z) a b = y + a + b

Nice!

Best regards
Tomasz


More information about the Haskell-Cafe mailing list