On 6/25/07, Udo Stenzel <u.stenzel@web.de> wrote:
That type signature describes a function that can deliver *anything*
(that is in class Data), whatever you ask from it.
Yes, that is the goal :-)
If you do that, you wind up dragging in all the
machinery of Data.Generic
Is reflection hard in Haskell? In C# its easy, and its one of the most powerful features of C#
just to implement what HaXml does with much
simpler technology. I doubt that's what you actually want.
It is exactly what I want ;-) haxml needs a DTD.
On the other hand, I might be misunderstanding. In that case,
Data.Generics should have everything you need, in particular gunfold and
friends.
Yes, but I'm kindof stuck giving useful input to makeConstrM, so if anyone has any ideas?
kpreid in irc gave me an example of using makeConstrM for a pair of strings , but I cant seem to generalize it to work with a custom data type containing strings and ints ( eg Config{ login :: String, maxLogAgeDays :: Int } )