RE: [Haskell-cafe] Template haskell instance checking

2006-03-02 Thread Simon Peyton-Jones
| To: haskell-cafe@haskell.org | Subject: [Haskell-cafe] Template haskell instance checking | | Is there a way, in template haskell, to find out what instance declarations | exist? I'm not trying to accomplish anything specific right now, but I can | see two potential uses for this. One is to emit

[Haskell-cafe] Template haskell instance checking

2006-03-01 Thread heatsink
Is there a way, in template haskell, to find out what instance declarations exist? I'm not trying to accomplish anything specific right now, but I can see two potential uses for this. One is to emit compile-time error messages from TH code which would be more informative than the