gogol icon indicating copy to clipboard operation
gogol copied to clipboard

How are new Scopes managed in `envScopes`

Open tonicebrian opened this issue 1 year ago • 1 comments

Following recommendations from https://github.com/brendanhay/gogol/issues/147#issuecomment-635735272 I'm using latest commit on master to have gogol in my project. But then all the scope code changed and instead of having storageReadWriteScope like being used in the examples https://github.com/brendanhay/gogol/blob/main/examples/src/Example/Storage.hs#L46 now we have Devstorage'ReadWrite. When trying to use the new symbol I get this compilation error:

Data constructor not in scope:
  Devstorage'ReadWrite :: Proxy scopes0

Can we have an updated example with the new Scope symbols?

tonicebrian avatar Sep 05 '22 13:09 tonicebrian

I am revisiting/updating some old Haskell code and got things compiling with:

storageReadWrite :: Proxy '[Storage.Devstorage'ReadWrite]
storageReadWrite = Proxy

allow storageReadWrite someExistingCredentials

nathankot avatar Oct 02 '23 09:10 nathankot