Re: Deriviable type classes

2011-02-10 Thread José Pedro Magalhães
Hi, 2011/2/10 Yitzchak Gale g...@sefer.org Simon Peyton-Jones wrote: Generic Defaults... will replace... the Derivable type classes stuff... in GHC 7.2 or 7.4... Please yell if you are a secret user of derivable type classes, so this change would discombobulate you. Could you give us

StgExpr AST

2011-02-10 Thread Chris Nicholls
Hello, Is there a way to get access to the STG syntax tree of a program using the GHC api? i.e. a function that returns something of type `StgExpr' that can be used in a way similar to this: example module =     defaultErrorHandler defaultDynFlags $ do   runGhc (Just libdir) $ do    

Re: StgExpr AST

2011-02-10 Thread Victor Nazarov
On Thu, Feb 10, 2011 at 1:09 PM, Chris Nicholls chrisnichol...@gmail.com wrote: Hello, Is there a way to get access to the STG syntax tree of a program using the GHC api? i.e. a function that returns something of type `StgExpr' that can be used in a way similar to this: example module =