[Haskell-cafe] Data structure containing elements which are instances of the same type class
Alexander Solla
alex.solla at gmail.com
Sat Aug 11 22:08:45 CEST 2012
On Sat, Aug 11, 2012 at 12:01 PM, Antoine Latter <aslatter at gmail.com> wrote:
> It should be pretty easy to write an adapter function of type "String ->
> (Show a => a)".
>
Not with that type. Give it a try.
Hint: what is the extension of the type variable 'a'? What do you know
about it? How would you use that to write the function?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120811/31a3d502/attachment.htm>
More information about the Haskell-Cafe
mailing list