Currently for error conditions outside of transactions hedis returns a Left (Error ByteString :: Reply), which confuses me a little bit.
For example it was not immediately clear to me whether the error bytestring encodes only utf-8 strings. Further, it is only in the documentation where you can find that the Left reply will only ever contain an Error and not any of the SingleLine, Integer, Bulk or MultiBulk constructors.
Wouldn't it be possible to simplify those signatures to a more straight-forward Either Text a? Do I understand what's going on?
(PS attempting to quickly port https://github.com/scan/redissession from the deprecated redis to hedis)
Currently for error conditions outside of transactions
hedisreturns aLeft (Error ByteString :: Reply), which confuses me a little bit.For example it was not immediately clear to me whether the error bytestring encodes only utf-8 strings. Further, it is only in the documentation where you can find that the
Leftreply will only ever contain anErrorand not any of theSingleLine,Integer,BulkorMultiBulkconstructors.Wouldn't it be possible to simplify those signatures to a more straight-forward
Either Text a? Do I understand what's going on?(PS attempting to quickly port https://github.com/scan/redissession from the deprecated
redistohedis)