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

Version 6.0 won't compile #113

Closed
fetsh-edu opened this issue Apr 27, 2022 · 1 comment
Closed

Version 6.0 won't compile #113

fetsh-edu opened this issue Apr 27, 2022 · 1 comment

Comments

@fetsh-edu
Copy link
Contributor

Trying to compile the latest version from github.
Getting this errors:

telegram-bot-simple/src/Telegram/Bot/API/Types.hs:563:65: error:
    No instance for (ToJSON WebAppInfo) arising from a use of ‘.=’
    In the expression: "web_app_info" .= wai
     In the second argument of addType, namely
       ["text" .= txt, "web_app_info" .= wai]
     In the second argument of ($), namely
       addType "web_app" ["text" .= txt, "web_app_info" .= wai]
   |                              
563 |       object $ addType "web_app" ["text" .= txt, "web_app_info" .= wai]
   |                                                                 ^^
                                  
/telegram-bot-simple/src/Telegram/Bot/API/Types.hs:571:15: error:
    No instance for (FromJSON WebAppInfo)
       arising from a use of gparseJSON
    In the expression: gparseJSON
     In an equation for parseJSON’: parseJSON = gparseJSON
     In the instance declaration for FromJSON MenuButton
   |                              
571 |   parseJSON = gparseJSON

stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 9.0.1

stack --version
Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f x86_64 hpack-0.34.4

@swamp-agr
Copy link
Collaborator

Thank you for reporting! Issue was fixed and released on Hackage: https://hackage.haskell.org/package/telegram-bot-simple-0.5.1

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