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
At the moment, combinators like key are polymorphic over some types, but not all. For instance, I can use key on either a ByteString or a Value.
The http-client library defines a Response type, such that I can have a Response ByteString or a Response Value. I cannot currently figure out how to swizzle the various moving parts such that I can use key and other combinators on one of these.
(Of course I have a responseBody lens, so I can write responseBody . key "foo", but my wish is to be able to more simply write key "foo" instead.)
The text was updated successfully, but these errors were encountered:
At the moment, combinators like
key
are polymorphic over some types, but not all. For instance, I can usekey
on either aByteString
or aValue
.The http-client library defines a
Response
type, such that I can have aResponse ByteString
or aResponse Value
. I cannot currently figure out how to swizzle the various moving parts such that I can usekey
and other combinators on one of these.(Of course I have a
responseBody
lens, so I can writeresponseBody . key "foo"
, but my wish is to be able to more simply writekey "foo"
instead.)The text was updated successfully, but these errors were encountered: