Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hs-boot file generation test. #197

Open
wavewave opened this issue Oct 21, 2022 · 0 comments
Open

hs-boot file generation test. #197

wavewave opened this issue Oct 21, 2022 · 0 comments
Labels

Comments

@wavewave
Copy link
Owner

Right now, the type signatures from hs file and hs-boot file are different, and GHC 9.4 results in build error while GHC 9.2 was okay.

[ 66 of 129] Compiling OGDF.NodeElement.Interface ( src/OGDF/NodeElement/Interface.hs, dist/build/OGDF/NodeElement>

src/OGDF/NodeElement/Interface.hs-boot:3:1: error:
    Class ‘INodeElement’ has conflicting definitions in the module
    and its hs-boot file
    Main module: type INodeElement :: * -> Constraint
                 class IDeletable a => INodeElement a
    Boot file:   type INodeElement :: * -> Constraint
                 class INodeElement a
    The class constraints do not match
  |
3 | class () => INodeElement a where
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This was discovered by a downstream library (hs-ogdf) as the above, but should have been captured in tests here. We should make a test with hs-boot.

@wavewave wavewave added the Test label Oct 21, 2022
@wavewave wavewave moved this to Backlog in fficxx dev Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant