https://github.com/nufeen/tglib-haskell-bindings
https://github.com/nufeen/tglib-haskell-bindings
haskell haskell-bindings tglib
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/nufeen/tglib-haskell-bindings
- Owner: Nufeen
- License: wtfpl
- Created: 2019-01-06T22:35:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-10T15:53:45.000Z (over 7 years ago)
- Last Synced: 2025-02-17T13:27:42.724Z (over 1 year ago)
- Topics: haskell, haskell-bindings, tglib
- Language: Haskell
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# tglib-haskell-bindings
[Telegram library](https://github.com/tdlib/td#using-json) haskell bindings example. Examples in other languages can be found [here](https://github.com/tdlib/td/tree/master/example)
This example considers prebuilt dynamic `libtdjson.[so|dylib|dll]` in `lib` folder.
# To execute:
1. [Build tdlib](https://core.telegram.org/tdlib/docs/#building) or get precompiled binaries.
2. `stack ghci --ghci-options -ltdjson`
# To build:
```
stack build --ghc-options -ltdjson
```
In case of Mac OS you may need to specify lib path before execution:
```
export DYLD_LIBRARY_PATH=lib
```
# Notes
This may be useful: https://github.com/Bannerets/tdlib-binaries
The copy of build instructions (they are a bit different) can be also found here: https://github.com/tdlib/td#building
td_json_client.h File Reference: https://core.telegram.org/tdlib/docs/td__json__client_8h.html
Check this fork, much more complex: https://github.com/egormkn/tdlib-haskell-bindings
### Mac OS OpenSSL issues:
https://stackoverflow.com/a/29792635
MacOS uses LibreSSL by default. If you have issues with it you can try switch to openssl like:
```
export PATH="/usr/local/etc/openssl/bin:$PATH"
```
Use `openssl version` to ensure which lib is actually used.