# Plugin Dependency Conflict

**URL:** <https://discourse.haskell.org/t/plugin-dependency-conflict/10121>\
**Category:** Learn\
**Created:** [August 7, 2024, 3:19pm UTC](https://discourse.haskell.org/t/plugin-dependency-conflict/10121 "2024-08-07T15:19:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BebeSparkelSparkel](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@BebeSparkelSparkel](https://discourse.haskell.org/u/BebeSparkelSparkel)\
**Post date:** [August 7, 2024, 3:19pm UTC](https://discourse.haskell.org/t/plugin-dependency-conflict/10121/1 "2024-08-07T15:19:04Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![hsyl20](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hsyl20](https://discourse.haskell.org/u/hsyl20)\
**Post date:** [August 7, 2024, 4:05pm UTC](https://discourse.haskell.org/t/plugin-dependency-conflict/10121/2 "2024-08-07T16:05:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BebeSparkelSparkel](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@BebeSparkelSparkel](https://discourse.haskell.org/u/BebeSparkelSparkel)\
**Post date:** [August 7, 2024, 6:01pm UTC](https://discourse.haskell.org/t/plugin-dependency-conflict/10121/3 "2024-08-07T18:01:14Z")

</div>

Doesn’t this problem basically make all plugins unusable?

---

<div class="post-metadata">

**Author:** ![hsyl20](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hsyl20](https://discourse.haskell.org/u/hsyl20)\
**Post date:** [August 8, 2024, 7:51am UTC](https://discourse.haskell.org/t/plugin-dependency-conflict/10121/4 "2024-08-08T07:51:54Z")

</div>

> 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](https://hsyl20.fr/posts/2024-08-07-about-ghcs-stability.html) (close to the end). You may try to use the `-fplugin-library` workaround.

---

<div class="post-metadata">

**Author:** ![BebeSparkelSparkel](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@BebeSparkelSparkel](https://discourse.haskell.org/u/BebeSparkelSparkel)\
**Post date:** [August 8, 2024, 12:28pm UTC](https://discourse.haskell.org/t/plugin-dependency-conflict/10121/5 "2024-08-08T12:28:12Z")

</div>

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