Closed ilyakooo0 closed 4 years ago
I exported it from
Network.Google.Auth.ServiceAccount
.
Thanks @ilyakooo0 :bow:
The
ServiceAccount
is required to create anOAuthToken
, but it wasn't exported from anywhere, so there wasn't an easy way of creating it.
Do you have a way to circumvent this until we all can enjoy a new release?
By the way @brendanhay, if I can help cutting a release let me know :)
@fmenou we currently use the custom branch in stack extra-deps.
A way you could work around this is with typeclass instances. I think there is a FromJSON instance currently defined. You can import the module even if it doesn't export any constructors and decode it using the instance.
@fmenou we currently use the custom batch in stack extra-deps.
I will do that :+1:
A way you could work around this is with typeclass instances. I think there is a FromJSON instance currently defined. You can import the module even if it doesn't export any constructors and decode it using the instance.
Nicely done :ok_hand:
The
ServiceAccount
is required to create anOAuthToken
, but it wasn't exported from anywhere, so there wasn't an easy way of creating it.I exported it from
Network.Google.Auth.ServiceAccount
.