Safe Haskell | None |
---|---|
Language | Haskell2010 |
This defines primitive byte operations, to be used with binary conversion. For the present we use the FFI. There are probably lots of better ways.
Documentation
Instances
Enum Byte Source # | |
Eq Byte Source # | |
Integral Byte Source # | |
Num Byte Source # | |
Ord Byte Source # | |
Real Byte Source # | |
Defined in Util.Bytes toRational :: Byte -> Rational # | |
Show Byte Source # | |
Bits Byte Source # | |
Defined in Util.Bytes (.&.) :: Byte -> Byte -> Byte # (.|.) :: Byte -> Byte -> Byte # complement :: Byte -> Byte # shift :: Byte -> Int -> Byte # rotate :: Byte -> Int -> Byte # setBit :: Byte -> Int -> Byte # clearBit :: Byte -> Int -> Byte # complementBit :: Byte -> Int -> Byte # testBit :: Byte -> Int -> Bool # bitSizeMaybe :: Byte -> Maybe Int # shiftL :: Byte -> Int -> Byte # unsafeShiftL :: Byte -> Int -> Byte # shiftR :: Byte -> Int -> Byte # unsafeShiftR :: Byte -> Int -> Byte # rotateL :: Byte -> Int -> Byte # | |
HasBinary Byte m Source # | |
Defined in Util.BinaryInstances writeBin :: WriteBinary m -> Byte -> m () Source # readBin :: ReadBinary m -> m Byte Source # |