Annotations and Template Haskell

Simon Peyton-Jones simonpj at microsoft.com
Tue Mar 9 05:51:49 EST 2010


I'm not sure what you intend here. Can you be more concrete?

Simon

| -----Original Message-----
| From: glasgow-haskell-users-bounces at haskell.org [mailto:glasgow-haskell-users-
| bounces at haskell.org] On Behalf Of Bertram Felgenhauer
| Sent: 08 March 2010 10:28
| To: glasgow-haskell-users at haskell.org
| Subject: Annotations and Template Haskell
| 
| Hello,
| 
| I'm wondering whether annotations [1] could be made available to
| Template Haskell users as a ghc specific extension.
| 
| Would that be feasible? Would it be useful?
| 
| An example use would be annotating a type with a representation of a
| default value that could be used in generating instances for various
| type classes (like parsers that take the default value into account).
| 
| The alternative would be to pass that representation explicitely to
| every single Template Haskell invocation that uses it.
| 
| Regards,
| 
| Bertram
| 
| [1] http://hackage.haskell.org/trac/ghc/wiki/Annotations
| _______________________________________________
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



More information about the Glasgow-haskell-users mailing list