You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
• No instance for (IsLabel
"message"
(p0 (Maybe a0) (f0 (Maybe b0))
-> ReceivedMessage -> Const (First ByteString) ReceivedMessage))
arising from the overloaded label ‘#message’
(maybe you haven't applied a function to enough arguments?)
• In the first argument of ‘(.)’, namely ‘#message’
In the second argument of ‘(^?)’, namely
‘#message . _Just . #data . _Just’
In the expression: msg ^? #message . _Just . #data . _Just
|
102 | let rmMsg = msg ^? #message . _Just . #data . _Just
| ^^^^^^^^
Is it that the lenses are not derived on the fields?
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.
• Variable not in scope: data' :: a0 -> Maybe (Maybe ByteString)
• Perhaps you want to add ‘data'’ to the import list
in the import of ‘Gogol.PubSub.Types’
(src/ProcessMessage.hs:12:1-74).
NB: ‘data'’ is a field selector belonging to the type ‘PubsubMessage’
that has been suppressed by NoFieldSelectors
|
104 | let rmMsg = fromMaybe "" $ maybe (Nothing) (data') (message msg)
| ^^^^^
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: