Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/awakesecurity/gRPC-haskell
Haskell gRPC support
https://github.com/awakesecurity/gRPC-haskell
Last synced: 2 months ago
JSON representation
Haskell gRPC support
- Host: GitHub
- URL: https://github.com/awakesecurity/gRPC-haskell
- Owner: awakesecurity
- License: apache-2.0
- Created: 2017-02-28T17:42:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T17:07:38.000Z (7 months ago)
- Last Synced: 2024-07-15T18:34:53.341Z (6 months ago)
- Language: Haskell
- Homepage: https://hackage.haskell.org/package/grpc-haskell
- Size: 15.6 MB
- Stars: 236
- Watchers: 28
- Forks: 74
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome - awakesecurity/gRPC-haskell - 06 star:0.2k fork:0.1k Haskell gRPC support (Haskell)
README
Attribution
-----------This library is a fork of https://github.com/aloiscochard/grpc-haskell that we
have extended and released under the same [`LICENSE`](./LICENSE)Installation
------------**The current version of this library requires gRPC version 1.45.0. Newer versions may work but have not been tested.**
Usage
-----There is a tutorial [here](examples/tutorial/TUTORIAL.md)
Building and testing
--------------------`nix-build release.nix -A grpc-haskell` will build and test the whole thing and
put the completed package into the nix store. `nix-shell` can be used to give
you a development environment where you can use `cabal` for development and
testing:```bash
$ nix-shell
[nix-shell]$ cabal configure --enable-tests && cabal build && cabal test
```Using the Library
-----------------You must compile with `-threaded`, because we rely on being able to execute
Haskell while blocking on foreign calls to the gRPC library. If not using code
generation, the recommended place to start is in the
`Network.GRPC.HighLevel.Server.Unregistered` module, where `serverLoop` provides
a handler loop.