Skip to content

[#156] Export EntryPoints-related constraints

Ivan Gromakovskii requested to merge gromak/#156-export-ep-constraint into master

Description

Problem: when one wants to define ParameterHasEntryPoints for a polymorphic type (e. g. A a) they need to make sure that the constraint required for EntryPointsDerivation Epd* (A a) holds. But the required constraint (PlainEntryPointsC) is not exported, so it is hard to define such instances.

Solution: export PlainEntryPointsC. Additionally export EPTree and BuildEPTree which also might be useful in some cases.

Related issue(s)

Resolves #156 (closed)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Merge request reports