mirror of
https://github.com/higherkindness/mu-haskell.git
synced 2024-09-11 14:36:01 +03:00
Fix the documentation for the initGRpc function (#156)
This commit is contained in:
parent
5626367a8d
commit
8eb8947bf1
@ -54,7 +54,7 @@ The simplest way to call methods is to use the `optics`-based API. In that case,
|
||||
```haskell
|
||||
main :: IO ()
|
||||
main = do ...
|
||||
where setup config = initGRpc config
|
||||
where setup config = initGRpc config msgProtoBuf
|
||||
```
|
||||
|
||||
To call a method, you use the corresponding getter (for those familiar with optics, a version of a lens which does not allow to set). This means that your code reads `client ^. #method`, where `client` is the value obtained previously in the call to `initGRpc`.
|
||||
|
@ -56,7 +56,7 @@ newtype GRpcConnection (s :: Package') (p :: GRpcMessageProtocol)
|
||||
-- inferred from the usage later on.
|
||||
-- However, it can also be made explicit by using
|
||||
--
|
||||
-- > initGRpc config @Service
|
||||
-- > initGRpc config msgProtoBuf @Service
|
||||
--
|
||||
initGRpc :: G.GrpcClientConfig -- ^ gRPC configuration
|
||||
-> Proxy p
|
||||
|
Loading…
Reference in New Issue
Block a user