Open chshersh opened 4 years ago
Sometimes, when the code is polymorphic, it's very easy to use the wrong order of fields:
data User = User { userName :: !Text , userAge :: !Int } instance Binary User where put User{..) = put userAge >> put userName get = User <$> get <*> get
Sometimes, when the code is polymorphic, it's very easy to use the wrong order of fields: