
Anton Antich
Dear all,
we started exploring Haskell-to-DotNet compiler in frames of a larger project and would like to clarify one issue: is it possible to control the order in the compilation pipeline in which the compiler plugins get called? Inserting .Net compilation via Plugin seems a cleaner way than using GHC API from scratch for a lot of reasons, but the challenge is as follows: we compile from STG but inside the plugin core2core passes have not been called yet, and without them some important optimizations are missing.
Just so we are all on the same page: Precisely what type of plugin are you implementing? If it's a Core plugin then you should be able install your plugin anywhere in the list of CoreToDos given to the installCoreToDos function. Cheers, - Ben