Plugin Dependency Conflict

I am trying to write a plugin but am having the problem where the ghc package want transformers 0.5.6.2 but the package I want the plugin to modify requires 0.6.1.1.

Since, the compiled plugin objects do not intermix with the compiled project objects it seems like this should not actually be a conflict. Is there a way to resolve this?

1 Like

I believe you’d like to have [RFC] Plugin dependencies · Issue #2965 · haskell/cabal · GitHub (I thought it was already implemented…)

1 Like

Doesn’t this problem basically make all plugins unusable?

1 Like

Doesn’t this problem basically make all plugins unusable?

Not unusable, but plugins add a lot of constraints. I wrote about this just yesterday in About GHC's stability in 2024 (close to the end). You may try to use the -fplugin-library workaround.

1 Like

Good writing thanks! Convinced me not to use plugins though.

1 Like