RE: Template Haskell [d| .. trouble

2007-06-21 Thread Simon Peyton-Jones
o: glasgow-haskell-users@haskell.org | Subject: Template Haskell [d| .. trouble | | Hi. | | I've started using template haskell (replacing some preprocessor stuff) | | However I had real trouble when trying to convert | instance (Show d) => Show (C d) | where show _ = "C " ++ (show

Template Haskell [d| .. trouble

2007-06-16 Thread Marc Weber
Hi. I've started using template haskell (replacing some preprocessor stuff) However I had real trouble when trying to convert instance (Show d) => Show (C d) where show _ = "C " ++ (show (undefined :: d)) into th. Why? It didn't compile (http://hpaste.org/289) Heffalump on #haskell sugg