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

Cannot build reader-soup on GHC 8.10 #82

Open
ocharles opened this issue Jun 18, 2020 · 3 comments
Open

Cannot build reader-soup on GHC 8.10 #82

ocharles opened this issue Jun 18, 2020 · 3 comments

Comments

@ocharles
Copy link

Describe the bug

I cannot build reader-soup on GHC 8.10.

To Reproduce

cabal build reader-soup on GHC 8.10.

Expected behavior

It builds

Additional context

The failure is:

[1 of 4] Compiling Control.Monad.ReaderSoup ( src/Control/Monad/ReaderSoup.hs, dist/build/Control/Monad/ReaderSoup.o, dist/build/Control/Monad/ReaderSoup.dyn_o )

src/Control/Monad/ReaderSoup.hs:127:17: error:
    • Expected kind ‘(k -> *) -> [k] -> *’,
        but ‘r’ has kind ‘((Symbol, *) -> *) -> [(Symbol, *)] -> *’
    • In the first argument of ‘RecElemFCtx’, namely ‘r’
      In the type ‘(HasField r l ctxs ctxs (ContextFromName l) (ContextFromName l),
                    RecElemFCtx r ElField)’
      In the type declaration for ‘IsInSoup_’
    |
127 |   , RecElemFCtx r ElField )

Perhaps this is a problem with vinyl, which does at least build on 8.10, but may have things incorrectly typed?

@ocharles
Copy link
Author

I tried enabling PolyKinds but the problem remains, so it's not that.

@YPares
Copy link
Owner

YPares commented Aug 20, 2020

Hello! Yes I think it came from vinyl's version. Latest version I believe doesn't have this problem.
This has been fixed on our internal dev branch, which I should port back to this repository soon.

@ocharles
Copy link
Author

Oh yes, the associated issue above is me fixing the problem in vinyl. reader-soup does build with the fix!

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

No branches or pull requests

2 participants