-
Notifications
You must be signed in to change notification settings - Fork 632
[CDEC-403] Remove partial field accessors from HandlerSpec
, InductiveValidationError
, InvariantViolation
and ValidationResult
data types.
#3263
Conversation
| UnknownHandler Word8 ByteString | ||
-- | ConvHandler hsReplyType | ||
= ConvHandler !MessageCode | ||
| UnknownHandler !Word8 !ByteString | ||
deriving (Show, Generic, Eq) | ||
|
||
instance Bi HandlerSpec where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't seem to have golden/bitripping tests for HandlerSpec
. At least not in the infra
package.
We need that before we go changing things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do, I'll create a ticket.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests created in #3268 and merged. Rebased [CDEC-403] onto develop with golden and bitripping tests still passing.
fd46ef6
to
0d5b014
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
build InductiveInvalidBoot{..} = bprint | ||
build (InductiveInvalidBoot | ||
inductiveInvalidBoot | ||
inductiveInvalidError) = bprint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for removing uses of RecordWildcards. Maybe at some point we can go through and drop it from default-extensions
/ drop all uses.
Description
Remove partial field accessors from
HandlerSpec
,InductiveValidationError
,InvariantViolation
andValidationResult
data types.Linked issue
https://iohk.myjetbrains.com/youtrack/issue/CDEC-403
Type of change
Developer checklist
Testing checklist
QA Steps
Screenshots (if available)