haskell / haskell/cabal

Recommended way of building and deploying plugins

Open
#6,881 2 comments 0 reactions 0 assignees View on GitHub
re: ghc-plugins type: user-question
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

When I am building and testing a plugin project, I can just add the plug-in library to dependency of the executable I am testing in the project, and add `-fplugin` to the `ghc-options` and things work.

If I (v2) install the plugin library I can't find a way of easily getting hold of it in other projects. Adding it to the dependencies of the other project helps, but
* I can't seem to find a way of applying the plugin-in to only the exposed modules, and not the build-depends.
* As well as `-fplugin` I seem to have to add `-package` to even get that far, as otherwise the package / plugin is reported as hidden.

I have looked through some of the earlier issues, but did not find a solution.

Is there an example or further documentation anywhere that might provide some pointers?

Many thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.