Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class FixedBitSize a where
- fixedBitSize :: a -> Count
Documentation
class FixedBitSize a where Source #
Class of values that have a fix bit size
fixedBitSize :: a -> Count Source #
Get the bit size of a value of given type.
>>>
fixedBitSize Word8
8
Instances
FixedBitSize Bool Source # | |
Defined in HaskellWorks.Data.Bits.FixedBitSize fixedBitSize :: Bool -> Count Source # | |
FixedBitSize Word8 Source # | |
Defined in HaskellWorks.Data.Bits.FixedBitSize fixedBitSize :: Word8 -> Count Source # | |
FixedBitSize Word16 Source # | |
Defined in HaskellWorks.Data.Bits.FixedBitSize fixedBitSize :: Word16 -> Count Source # | |
FixedBitSize Word32 Source # | |
Defined in HaskellWorks.Data.Bits.FixedBitSize fixedBitSize :: Word32 -> Count Source # | |
FixedBitSize Word64 Source # | |
Defined in HaskellWorks.Data.Bits.FixedBitSize fixedBitSize :: Word64 -> Count Source # |