Skip to content

Why aren't constructors exported out of Internal libraries #342

Closed
@madgen

Description

@madgen

Hi, I'm trying to derive Lift instances for HashMap and HashSet as done in th-lift-instances for Set and Map from containers (specifically here) so that I can use them with Typed Template Haskell.

However, deriving Lift as an orphan instance requires access to the constructors which I'd expect from the Internal version of the HashSet and HashMap modules but that is not the case. HashMap partially exposes it, however, it uses types such as HashMap.Array.Array which doesn't expose its constructors.

Is there a reason for this?

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