Closed tonyalaribe closed 1 week ago
I was able to get this to work with lenses, but like this:
let rmMsg = msg ^? field @"message" . _Just . field @"data'" . _Just . _Base64
field @"blabla" The intended way for accessing record fields on gogol?
Yes. Or #message
, using -XOverloadedLabels
.
Hi, this is likely a trivial question, but i've been banging my head on this for a bit too long.
How do I access the fields in a Pubsub RecievedMessage record?
I had this line of code before the updates:
But this doesn't work anymore.
So i saw tried what I saw from the generic-lens package and from diving into gogol-pubsub codebase:
Which gives the error:
Is it that the lenses are not derived on the fields?
Next, I tried to fall back on regular haskell
But then I get an error about the NoFieldSelectors extension. So it seems the fieldselectors are not exposed, so I can't query using them either.