Skip to content

Recommended way of building and deploying plugins #6881

@jrp2014

Description

@jrp2014

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions