RE: instance of Lift for Exp

"Simon Peyton-Jones" <[email protected]>
Newsgroups gmane.comp.lang.haskell.template
Message-ID <4B93206CA3C55D4F96A61C9B1DC80DE3016530EA@EUR-MSG-03.europe.corp.microsoft.com>
| While on the topic of TH, let me float "yet another idea"TM
| Include {-#  #-} pragmas in the TH abstract syntax.
| 
| Why? Because it would allow domain/library-specific hints and
| annotations.
| 
| data Pragma = PragmaGhcRule ...
| 	      PragmaGhcSpecialise ...
|               PragmaOther String   --free form
| 
| My application of this might be to let the user indicate binding times
| when doing partial evaluation, eg:
| 
| {-# BT  foo :: Static -> Dynamic -> Dynamic #-}
| foo :: Int -> Int -> int
| foo x y = ...

Reasonable idea.   I'll put it in the list, but if anyone wants to have
a go at implementing it, go right ahead.

Simon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.