@@ -57,6 +57,9 @@ public
57intToBits : {n : Nat} -> Int -> Bits n
57intToBits : {n : Nat} -> Int -> Bits n
58intToBits n = MkBits (intToBits' n)
58intToBits n = MkBits (intToBits' n)
60+instance Cast Int (Bits n) where
60bitsShl' : {n: Nat} -> nextBits n -> nextBits n -> nextBits n
63bitsShl' : {n: Nat} -> nextBits n -> nextBits n -> nextBits n
61bitsShl' {n=n} x c with (nextBits n)
64bitsShl' {n=n} x c with (nextBits n)
62 | Bits8 = pad8 n prim__shlB8 x c
65 | Bits8 = pad8 n prim__shlB8 x c