[Haskell-cafe] Re: Newbie question

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Jan 21 14:46:29 EST 2008


Hello Jon,

Monday, January 21, 2008, 9:28:09 PM, you wrote:

>> Ok. I have a my own class "class A a" and want to write function like
>> this  "f:: (A a)=>Integer->a". Can I do it?

> But in general you are going to want something a bit more
> useful, which means that you have to have a path from
> Integer to a

i.e. you should have other functions that produce A from Integer and
at the last end this means that class A should provide some way to
do it

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list