Re: StgExpr AST

2011-02-10 Thread Victor Nazarov
On Thu, Feb 10, 2011 at 1:09 PM, Chris Nicholls 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 = >     defaultErrorHan

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     dfla

Re: Deriviable type classes

2011-02-10 Thread José Pedro Magalhães
Hi, 2011/2/10 Yitzchak Gale > 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