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

Doesn't build with aeson >= 2 #112

Open
hasufell opened this issue Jan 3, 2023 · 2 comments
Open

Doesn't build with aeson >= 2 #112

hasufell opened this issue Jan 3, 2023 · 2 comments

Comments

@hasufell
Copy link

hasufell commented Jan 3, 2023

[1 of 3] Compiling Antiope.Messages.Types ( src/Antiope/Messages/Types.hs, dist/build/Antiope/Messages/Types.o, dist/build/Antiope/Messages/Types.dyn_o )

src/Antiope/Messages/Types.hs:87:23: error:
    • Couldn't match expected type ‘Aeson.Key’ with actual type ‘Text’
    • In the first argument of ‘(.=)’, namely ‘name’
      In the expression:
        name .= (Text.decodeUtf8 . LBS.toStrict . encode) a
      In the first argument of ‘Aeson.object’, namely
        ‘[name .= (Text.decodeUtf8 . LBS.toStrict . encode) a]’
   |
87 |     in Aeson.object [ name .= (Text.decodeUtf8 . LBS.toStrict . encode) a ]
   |                       ^^^^

src/Antiope/Messages/Types.hs:93:25: error:
    • Couldn't match expected type ‘Aeson.Key’ with actual type ‘Text’
    • In the second argument of ‘(.:)’, namely ‘Text.pack name’
      In the second argument of ‘(<$>)’, namely ‘obj .: Text.pack name’
      In the expression: With <$> obj .: Text.pack name
   |
93 |         With <$> obj .: Text.pack name
   |                         ^^^^^^^^^^^^^^

src/Antiope/Messages/Types.hs:98:23: error:
    • Couldn't match expected type ‘Aeson.Key’ with actual type ‘Text’
    • In the first argument of ‘(.=)’, namely ‘name’
      In the expression: name .= a
      In the first argument of ‘Aeson.object’, namely ‘[name .= a]’
   |
98 |     in Aeson.object [ name .= a ]
   |                       ^^^^

src/Antiope/Messages/Types.hs:102:9: error:
    • Couldn't match expected type ‘Aeson.Key’ with actual type ‘Text’
    • In the second argument of ‘(.:)’, namely ‘t’
      In the first argument of ‘(>>=)’, namely ‘(o .: t)’
      In the expression:
        (o .: t)
          >>= (either fail pure . eitherDecodeStrict . Text.encodeUtf8)
    |
102 |   (o .: t) >>= (either fail pure . eitherDecodeStrict . Text.encodeUtf8)
    |         ^
cabal: Failed to build antiope-core-7.5.3 (which is required by
exe:cabal-cache from cabal-cache-1.0.5.5). See the build log above for
details.
Failed to build antiope-messages-7.5.3 (which is required by exe:cabal-cache
from cabal-cache-1.0.5.5). See the build log above for details.
@newhoggy
Copy link
Collaborator

newhoggy commented Jan 4, 2023

The latest released of amazonka-1.6.1 doesn't support aeson-2 and antiope is a wrapper library around amazonka, which means antiope can't support aeson-2 either.

@ysangkok
Copy link

ysangkok commented Aug 4, 2023

@newhoggy Amazonka 2 was now released, it supports aeson-2

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

3 participants