Skip to content

Commit 372f04d

Browse files
committed
Implement ensureSpine for BitVector n as pack
1 parent c3c9bff commit 372f04d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGED: `BitVector n` now has an implementation for `ensureSpine` which ensures the constructor is present.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ instance KnownNat n => NFDataX (BitVector n) where
509509
deepErrorX _ = undefined#
510510
rnfX = rwhnfX
511511
hasUndefined bv = isLeft (isX bv) || unsafeMask bv /= 0
512+
ensureSpine = xToBV -- Converts `XException` to 'undefined#'
512513

513514
-- | Create a binary literal
514515
--

0 commit comments

Comments
 (0)