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 #101

Closed
Bodigrim opened this issue Feb 17, 2022 · 5 comments
Closed

Build failure with GHC 9.0 #101

Bodigrim opened this issue Feb 17, 2022 · 5 comments

Comments

@Bodigrim
Copy link

$ cabal build -w ghc-9.0
src/Telegram/Bot/API/Types.hs:1027:30: error:
    • No instance for (ToJSON PassportElementError)
        arising from a use of ‘encodeToLazyText’
    • In the second argument of ‘(.)’, namely ‘encodeToLazyText’
      In the expression: TL.toStrict . encodeToLazyText
      In an equation for ‘toUrlPiece’:
          toUrlPiece = TL.toStrict . encodeToLazyText
     |
1027 |   toUrlPiece = TL.toStrict . encodeToLazyText
     |                              ^^^^^^^^^^^^^^^^

src/Telegram/Bot/API/Types.hs:1030:30: error:
    • No instance for (ToJSON PassportElementError)
        arising from a use of ‘encodeToLazyText’
    • In the second argument of ‘(.)’, namely ‘encodeToLazyText’
      In the expression: TL.toStrict . encodeToLazyText
      In an equation for ‘toUrlPiece’:
          toUrlPiece = TL.toStrict . encodeToLazyText
     |
1030 |   toUrlPiece = TL.toStrict . encodeToLazyText
     |                              ^^^^^^^^^^^^^^^^

src/Telegram/Bot/API/Types.hs:1146:50: error:
    • No instance for (ToJSON MessageEntity)
        arising from a use of ‘gtoJSON’
    • In the expression: gtoJSON
      In an equation for ‘toJSON’: toJSON = gtoJSON
      In the instance declaration for ‘ToJSON InputMediaGeneric’
     |
1146 | instance ToJSON InputMediaGeneric where toJSON = gtoJSON
     |                                                  ^^^^^^^

src/Telegram/Bot/API/Types.hs:1156:55: error:
    • No instance for (ToJSON MessageEntity)
        arising from a use of ‘encodeToLazyText’
    • In the second argument of ‘($)’, namely ‘encodeToLazyText t’
      In the second argument of ‘Input’, namely
        ‘(TL.toStrict $ encodeToLazyText t)’
      In the expression:
        Input "caption_entities" (TL.toStrict $ encodeToLazyText t)
     |
1156 |         \t -> Input "caption_entities" (TL.toStrict $ encodeToLazyText t)
     |                                                       ^^^^^^^^^^^^^^^^^^

Cf. #46.

@swamp-agr
Copy link
Collaborator

Fix released in https://hackage.haskell.org/package/telegram-bot-simple-0.4.2.
Thank you for reporting the issue.

@Bodigrim
Copy link
Author

@swamp-agr this strikes back in telegram-bot-simple-0.5. May I suggest setting up a CI via haskell-ci to prevent such issues in future again?

@Bodigrim
Copy link
Author

As a Hackage trustee I made a revision to prohibit unbuildable configuration:
https://hackage.haskell.org/package/telegram-bot-simple-0.5/revisions/

@swamp-agr
Copy link
Collaborator

For some reasons I haven't received any notification.
I will set up Github actions soon.

@swamp-agr
Copy link
Collaborator

swamp-agr commented May 9, 2022

GitHub actions set via #119 and compilation errors fixed via #120.

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