[Haskell-cafe] Query regarding Type classes

2008-10-13 Thread Arun Suresh
Hello folks, Im kinda new to haskell. Ive only been fiddling around with it for bout 3 - 4 weeks now. And for the life of me... i cant seem to figure out why this doesnt work : class Foo a where fooFunc :: a - Int data FooData = FData instance Foo FooData where fooFunc _ = 10 class

Re: [Haskell-cafe] Query regarding Type classes

2008-10-13 Thread Arun Suresh
On Mon, Oct 13, 2008 at 4:08 PM, Ryan Ingram [EMAIL PROTECTED] wrote: On Mon, Oct 13, 2008 at 11:18 AM, Arun Suresh [EMAIL PROTECTED] wrote: ] you seem to have read my mind [:)].. i actaually hit upon this issue while ] trying to transcode some C++ to Haskell.. (literate haskell post, save

Re: [Haskell-cafe] Query regarding Type classes

2008-10-13 Thread Arun Suresh
Hello Ryan.. On Mon, Oct 13, 2008 at 3:33 PM, Ryan Ingram [EMAIL PROTECTED] wrote: Step 1: Forget everything you know about OO classes, then try again :) you seem to have read my mind [:)].. i actaually hit upon this issue while trying to transcode some C++ to Haskell.. 2008/10/13 Arun

[Haskell-cafe] XML Validation and Digestion in Haskell

2007-03-22 Thread Arun Suresh
Hi.. I am currently working on a project where basically we do a lot of XML validation and digestion. For example : We recieve an XML document A, if the document passes schema validation, we do some business level validations, then from A, we create XML digests B, C and D. Our code-base is