Need help to understand how ghc loads the plugins

Please help to understand how compiler load the plugins. trying to implement a tool using GHC as library, where it’s not loading the plugins. Modified parseModule function to call initializePlugins which resolved the source but failing on typecheck. Any help would be appreciated.

2 Likes

Can anyone help in understanding the flow of how plugins are introduced on each step of GHC (8.8.4) pipeline.

Our use case is cabal build is working fine. But when the same code is tried to be parsed with GHC library the plugin is not being initialised.

Any help would be appreciated! Thanks

1 Like

The above issue helped. Tried it, it’s working now.

1 Like