brendanhay / gogol

A comprehensive Google Services SDK for Haskell.
Other
280 stars 105 forks source link

Explicitly export ServiceAccount #146

Closed ilyakooo0 closed 4 years ago

ilyakooo0 commented 4 years ago

The ServiceAccount is required to create an OAuthToken, 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.

fmenou commented 4 years ago

I exported it from Network.Google.Auth.ServiceAccount.

Thanks @ilyakooo0 :bow:

The ServiceAccount is required to create an OAuthToken, 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 :)

ilyakooo0 commented 4 years ago

@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 commented 4 years ago

@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: