Skip to content

Conversation

@bolt12
Copy link
Collaborator

@bolt12 bolt12 commented Nov 13, 2025

This PR fixes #1230 .

Currently blocked on #1282

This export list follows an invariant that each module exports all their
definitions and types as well as re-exports underlying newtype
constructors. This is needed to workaround the FFI compilation issue
where GHC requires all constructors in scope.

NOTE: This almost solves the problem mentioned above. There's one corner
      case we didn't consider which is the fact that this is possible:

```hs
newtype A = A { un_A :: Other.Module.A }
```

RPM does this, in fact... which means we can't really export the two A's
in the same module :(
@bolt12 bolt12 self-assigned this Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create bindings for rpm

2 participants