I am developing a GHC source-plugin that would impact the build-process, since i would need to generate different versions of functions based on the package i am developing in. I would need to traverse the dependency-graph forward (starting by main source package), parse its source-code and mark modules as needed to be recompiled with my source-plugin enabled.
Is something like this possible with stack? I think a simple way to get the dependent graph, the source-code for each dependency and mark it as dirty would suffice.
I am developing a GHC source-plugin that would impact the build-process, since i would need to generate different versions of functions based on the package i am developing in. I would need to traverse the dependency-graph forward (starting by main source package), parse its source-code and mark modules as needed to be recompiled with my source-plugin enabled.
Is something like this possible with stack? I think a simple way to get the dependent graph, the source-code for each dependency and mark it as dirty would suffice.