kepler
kepler copied to clipboard
Change the RawKey class from Iso to Lens'
We currently have
class RawKey a where
rawKey :: Iso a ByteString
but we really don't ever use the from rawKey :: RawKey a => ByteString -> a
method at all. We should change the class to
class RawKey a where
rawKey :: a -> ByteString
Might this create a problem with #254 though? I assume currently we never read key bytes from store and deserialize into the type, but when iterating through the Map presumably we would need to be able to turn those bytes back into keys.