Module

Data.Binary.Bits

Package
purescript-binary
Repository
Unisay/purescript-binary

#Bits Source

newtype Bits

Constructors

Instances

#toString Source

#align Source

align :: Bits -> Bits -> Tuple Bits Bits

align length by adding zeroes from the left

#zeroes Source

#ones Source

ones :: Int -> Bits

#head Source

head :: Bits -> Bit

#tail Source

tail :: Bits -> Bits

#init Source

init :: Bits -> Bits

#last Source

last :: Bits -> Bit

#drop Source

drop :: Int -> Bits -> Bits

#take Source

take :: Int -> Bits -> Bits

#uncons Source

uncons :: Bits -> { head :: Bit, tail :: Bits }

#length Source

#setLsb Source

setLsb :: Bit -> Bits -> Bits

#setMsb Source

setMsb :: Bit -> Bits -> Bits

#addBit Source

#addBits Source

#addBits' Source

addBits' :: Bit -> Bits -> Bits -> Bits

#subtractBits Source

#intToBits Source

#unsafeBitsToInt Source