Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DII_Packet-s are not Num-eric. #52

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/QuickCheckVEngine/RVFI_DII/DII.hs
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ instance Binary DII_Packet where
return $ DII_Packet { dii_cmd = cmd
, dii_time = time
, dii_insn = insn }
instance Num DII_Packet where
fromInteger i = DII_Instruction 1 (fromInteger i)
(+) = error "(+) is not defined on DII_Packet"
(*) = error "(*) is not defined on DII_Packet"
abs = error "abs is not defined on DII_Packet"
signum = error "signum is not defined on DII_Packet"
negate = error "negate is not defined on DII_Packet"

-- | Construct a instruction 'DII_Packet'
diiInstruction :: Integer -> DII_Packet
Expand Down
Loading