LSN instances can be written shorter
Vlix opened this issue · comments
Maybe a bit pedantic, but saw it so I thought I'd add it nonetheless. 🤷
instance Ord LSN where
compare (LSN l0 r0) (LSN l1 r1) =
compare l0 l1 <> compare r0 r1
instance Serialize LSN where
put = putInt64be . toInt64
get = fromInt64 <$> getInt64be
Do like the idea of this library. Will be checking out more when I get the time. 👍
Thanks for the issue! I'll look into this. 👍