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

Build failure with GHC 9.0.1 #4

Open
sjakobi opened this issue Oct 15, 2021 · 2 comments
Open

Build failure with GHC 9.0.1 #4

sjakobi opened this issue Oct 15, 2021 · 2 comments

Comments

@sjakobi
Copy link

sjakobi commented Oct 15, 2021

src/Data/Conf/PrettyPrint.hs:57:17: error:
    Ambiguous occurrence ‘<>’
    It could refer to
       either ‘Prelude.<>’,
              imported from ‘Prelude’ at src/Data/Conf/PrettyPrint.hs:16:8-28
              (and originally defined in ‘GHC.Base’)
           or ‘Text.PrettyPrint.HughesPJClass.<>’,
              imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Data/Conf/PrettyPrint.hs:28:1-47
              (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
   |
57 |             "#" <> ttext c
   |                 ^^

src/Data/Conf/PrettyPrint.hs:63:13: error:
    Precedence parsing error
        cannot mix ‘<+>’ [infixl 6] and ‘Prelude.<>’ [infixr 6] in the same infix expression
   |
63 |             ttext t <+> thsep ts <> ";"
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Conf/PrettyPrint.hs:63:34: error:
    Ambiguous occurrence ‘<>’
    It could refer to
       either ‘Prelude.<>’,
              imported from ‘Prelude’ at src/Data/Conf/PrettyPrint.hs:16:8-28
              (and originally defined in ‘GHC.Base’)
           or ‘Text.PrettyPrint.HughesPJClass.<>’,
              imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Data/Conf/PrettyPrint.hs:28:1-47
              (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
   |
63 |             ttext t <+> thsep ts <> ";"
   |                                  ^^
cabal: Failed to build language-conf-0.2.2.0.
@hughjfchen
Copy link

I've created a PR to fix this issue and also add aeson v2 support. see this #5

@sjakobi
Copy link
Author

sjakobi commented Sep 11, 2022

Since there seems to be some interest in this package, I've used my Hackage trustee powers to add some upper bounds to the existing releases on Hackage. See e.g. https://hackage.haskell.org/package/language-conf-0.2.2.0/revisions/.

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