[Haskell-beginners] Polymorphism question from an OO-speaking newbie

Jan Jakubuv jakubuv at gmail.com
Mon May 4 12:29:26 EDT 2009


On Mon, May 04, 2009 at 05:23:59PM +0100, Jan Jakubuv wrote:
> 
> Try the following:
> 
>     {-# OPTIONS -fglasgow-exts #-}
> 
>     quoteS s = "\"" ++ s ++ "\""
>     quoteL l = map quoteS l

I forgot to say that the functions `quoteS` and `quoteL` are just for
illustration. You can miss them.

Jan.



-- 
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.



More information about the Beginners mailing list