[Haskell-cafe] Dynamically typing TH.Exp at runtime

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Fri Mar 13 11:09:47 EDT 2009

On 2009 Mar 13, at 4:03, Martin Hofmann wrote:
> That's true, inferring the type of a string is not the problem.  
> However,
> I am not only interested in the top-level type, but also in the type  
> of
> any arbitrary subexpression. Consider for example following recursive
> definition:

I'm pretty sure you can pull a typed AST out of ghc-api and query the  
type of any node.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090313/52beb69c/PGP.bin

More information about the Haskell-Cafe mailing list