Make it compile cleanly on GHC 8.10.7 and GHC 9.4.7
This MR makes this library build cleanly on both GHC 8.10.7 and GHC 9.4.7.
In particular, without this MR the build on GHC 9.4.7 will choke due to a misplaced LANGUAGE
pragma (it has to go before the module
declaration):
Furthermore, I have tightened the bounds on servant
, because there were some breaking changes in the type of makeClientRequest
for servant-client >= 0.20
we don't support yet.