Closed UnitylChaos closed 3 years ago
Yes that code is meant to deal with that, does your project import that module ? Even an empty import list is ok.
Yeah, I was importing it through Tendermint.Utils.Client
, but switching it to a direct import of Tendermint.Utils.QueryClient.Class
gives the same error.
It seems like there's nothing linking this to EmptyQueryServer
. Is it possible this is just a typo and it's supposed to be:
instance HasQueryClient m EmptyQueryServer where
type ClientQ m EmptyQueryServer = EmptyQueryClient
genClientQ _ _ _ = EmptyQueryClient
Adding that code to my file fixes the build error, so I think that should fix it. Will PR
Yes, that's definitely a typo. Nice catching that!
I'm trying to build the RPC client interfaces for my project by following pattern in the tutorial and running into an error.
Some of the relevant code:
Validators, Assets, and Context have actual query interfaces, but Signals
moduleQuerier
isEmptyQueryServer
.Not sure if this is a bug or if I'm doing the construction wrong. (The tutorial didn't address modules without a query server)
P.S. It seems like this code may be intended to deal with this? https://github.com/f-o-a-m/kepler/blob/9bf5781786101541af04c843af2b949c9f770b40/hs-abci-test-utils/src/Tendermint/Utils/QueryClient/Class.hs#L155