Comments (5)
This might have to do with either
- having a huge unifying
TelegramBotAPI
type (and deriving client for that); - having a lot of
Generic
-based deriving for large record types.
Because I couldn't have telegram-api
built successfully and fast enough on my laptop, I have rewritten a part of Telegram API while working on an experimental high-level Telegram bot package https://github.com/fizruk/telegram-bot-simple.
Specifically, I have chosen to
- have a separate type and client derivation per endpoint;
- use
deriveJSON
via Template Haskell to speed up the build (for large record types, such asMessage
).
My package builds a lot faster and requires much less memory than telegram-api
and already can do most of the useful stuff, so I guess you could borrow those 2 ideas to make this package great build fast again :)
from haskell-telegram-api.
hm, interesting. Thanks for reporting it, I can try to reproduce it using stack v1.6.1
from haskell-telegram-api.
You were able to reproduce it @klappvisor?
from haskell-telegram-api.
Oh, I should have posted this comment to here. Sorry.
from haskell-telegram-api.
This might have to do with either
- having a huge unifying
TelegramBotAPI
type (and deriving client for that);- having a lot of
Generic
-based deriving for large record types.Because I couldn't have
telegram-api
built successfully and fast enough on my laptop, I have rewritten a part of Telegram API while working on an experimental high-level Telegram bot package https://github.com/fizruk/telegram-bot-simple.Specifically, I have chosen to
- have a separate type and client derivation per endpoint;
- use
deriveJSON
via Template Haskell to speed up the build (for large record types, such asMessage
).My package builds a lot faster and requires much less memory than
telegram-api
and already can do most of the useful stuff, so I guess you could borrow those 2 ideas to make this packagegreatbuild fast again :)
But you don't provide support for webhook, do you?
from haskell-telegram-api.
Related Issues (20)
- Support for Bot API 3.1 update
- Bot API 3.2 support
- Bot API 3.3 support
- Bot API 3.4 support
- Bot 3.5 support
- Depricate direct IO
- Migrate to Servant 0.12 HOT 1
- Failed to build against GHC-8.2 HOT 1
- Automatically add "bot"-prefix to tokens in URLs HOT 1
- Not capturing mentions on users who has username
- Fails to build with lts-14.0 - error in MultipartFormData HOT 3
- How can i use that? HOT 3
- editMessageMedia
- game_chat_id :: Integer HOT 4
- عبود
- عبود HOT 2
- [QUESTION] Is this project still active? HOT 2
- Too strict version bounds on aeson
- GHC 8.10 and 9.0 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haskell-telegram-api.