Skip to content

Commit da6da56

Browse files
MrDurionmartijnbastiaan
authored andcommitted
change negate of Num Bit from complement## to id
1 parent be91e18 commit da6da56

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGED/FIXED: `negate` for `Num Bit` is now defined as the additive inverse, i.e., `negate = id`.

clash-prelude/src/Clash/Sized/Internal/BitVector.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ instance Num Bit where
369369
(+) = xor##
370370
(-) = xor##
371371
(*) = and##
372-
negate = complement##
372+
negate = id
373373
abs = id
374374
signum b = b
375375
fromInteger = fromInteger## 0##

0 commit comments

Comments
 (0)