On Sun, Jun 24, 2007 at 10:55:40PM +0200, Hugh Perkins wrote: > Anyway, the jist of our conversation was that it's not possible to create > arbitrary datatypes/constructors from strings in Haskell. Can anyone > deny/confirm?
If you want a function like fromConstr, where the 'a' depends on the input string, you can write it in CPS or wrap the result in an existential datatype. But I guess the problem is with "arbitrary", right? Best regards Tomek _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe