[Haskell-cafe] Re: Type hackery help needed!

2006-08-09 Thread Niklas Broberg
| It seems you might benefit from local functional dependencies, which | are asserted per instance rather than for the whole class. They are | explained in | | http://pobox.com/~oleg/ftp/Haskell/typecast.html Unfortunately I come crawling back with a failure. Either my fu was not strong

[Haskell-cafe] Re: Type hackery help needed!

2006-08-05 Thread Niklas Broberg
Yes, this will surely do the trick, thanks a lot! :-) I got as far as defining a TypeEq class myself in one of my attempts, trying to trick the inference engine, but now seeing the full ingenuity of the TypeCast class I realize how far from the solution I really was. Again, thanks a million!