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

compilation failure with text 1.2.5.0 (ghc 9.0.2) #8

Open
bergmark opened this issue Jan 10, 2022 · 7 comments · May be fixed by #9
Open

compilation failure with text 1.2.5.0 (ghc 9.0.2) #8

bergmark opened this issue Jan 10, 2022 · 7 comments · May be fixed by #9

Comments

@bergmark
Copy link

[1 of 3] Compiling Yesod.Csp    

src/Yesod/Csp.hs:81:27: error:
    Ambiguous occurrence ‘elem’
    It could refer to
       either ‘Prelude.elem’,
              imported from ‘Prelude’ at src/Yesod/Csp.hs:5:8-16
              (and originally defined in ‘Data.Foldable’)
           or ‘Data.Text.elem’,
              imported from ‘Data.Text’ at src/Yesod/Csp.hs:24:1-26
   |
81 | notEscapable = not . flip elem toEscape
   |                           ^^^^

src/Yesod/Csp.hs:110:24: error:
    Ambiguous occurrence ‘elem’
    It could refer to
       either ‘Prelude.elem’,
              imported from ‘Prelude’ at src/Yesod/Csp.hs:5:8-16
              (and originally defined in ‘Data.Foldable’)
           or ‘Data.Text.elem’,
              imported from ‘Data.Text’ at src/Yesod/Csp.hs:24:1-26
    |
110 | filterOut x | Wildcard `elem` x = Wildcard :| []
    |                        ^^^^^^

src/Yesod/Csp.hs:111:20: error:
    Ambiguous occurrence ‘elem’
    It could refer to
       either ‘Prelude.elem’,
              imported from ‘Prelude’ at src/Yesod/Csp.hs:5:8-16
              (and originally defined in ‘Data.Foldable’)
           or ‘Data.Text.elem’,
              imported from ‘Data.Text’ at src/Yesod/Csp.hs:24:1-26
@yitz-zoomin yitz-zoomin linked a pull request Jul 31, 2022 that will close this issue
@bobjflong
Copy link
Owner

I apologise for the extreme delay getting back to you. I probably need to find a new owner of this package. @bergmark is that something you'd be interested in? If so please fork and I will direct the readme to your version.

@pSub
Copy link

pSub commented Feb 9, 2024

Hi @bobjflong,

would be interested in maintaining yesod-csp. I use it for several small side projects and this compilation failure is currently blocking me. I already forked the repository at https://github.com/pSub/yesod-csp containing the fix for this issue and a Github action that tries to build the package. Only my Hackage account seems to be broken. I haven't used it in a long time and the "re-enabling"-thing I have to do breaks. But I have contacted the Hackage admins about this and hope they can sort it out.

What do you think?

@bobjflong
Copy link
Owner

Hi @pSub - yeah that's fine with me. I can add a note to the readme, and if you give me a hackage account I can add you to the maintainers there I believe.

@pSub
Copy link

pSub commented Feb 13, 2024

Thank you. As mentioned above my Hackage account (PascalWittmann) is currently unusable. I hope it the Hackage admins are able to fix it soon. Once I can login to Hackage, I'll ping you to add me as a maintainer.

@pSub
Copy link

pSub commented Mar 1, 2024

Hi @bobjflong,

thanks to the hackage admins I'm able to use my Hackage account (PascalWittmann) again. You can add me as a maintainer for yesod-csp and refer to https://github.com/pSub/yesod-csp in the Readme. I'm happy to take over.

@bobjflong
Copy link
Owner

@pSub
Copy link

pSub commented Mar 6, 2024

Thank you! I have uploaded a new version yesod-csp-0.2.6.0 (https://hackage.haskell.org/package/yesod-csp-0.2.6.0) to Hackage which fixes this issue.

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 a pull request may close this issue.

3 participants