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
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