@@ -307,11 +307,12 @@ bitSet : Fin n -> Bits n -> Bool
307307bitSet n x = bitsAnd (intToBits 1 `bitsShl` intToBits (cast (finToNat n))) x /= intToBits 0
308308
309309public
310−bitsToStr : Bits (S n) -> String
311−bitsToStr {n=n} x = helper (the (Fin (S n)) last) x
310+bitsToStr : Bits n -> String
311+bitsToStr x = helper last x
312312 where
313313 %assert_total
314− helper : Fin (S n) -> Bits (S n) -> String
314+ helper : Fin (S n) -> Bits n -> String
315315 helper fO _ = ""
316− helper (fS x) b = (if bitSet (weaken x) b then "1" else "0")
317− ++ helper (weaken x) b
316+ helper (fS x) b =
317+ (if bitSet x b then "1" else "0")
318+ ++ helper (weaken x) b