hw-bits-0.7.0.5: Bit manipulation

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Bits.BitShown

Synopsis

Documentation

newtype BitShown a Source #

Tag for a value describe the value as being able to be shown as a bit string

Constructors

BitShown 

Fields

Instances
Functor BitShown Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitShown

Methods

fmap :: (a -> b) -> BitShown a -> BitShown b #

(<$) :: a -> BitShown b -> BitShown a #

Eq a => Eq (BitShown a) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitShown

Methods

(==) :: BitShown a -> BitShown a -> Bool #

(/=) :: BitShown a -> BitShown a -> Bool #

BitShow a => Show (BitShown a) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitShown

Methods

showsPrec :: Int -> BitShown a -> ShowS #

show :: BitShown a -> String #

showList :: [BitShown a] -> ShowS #

BitRead a => IsString (BitShown a) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitShown

Methods

fromString :: String -> BitShown a #

FromByteString (BitShown [Bool]) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitShown

TestBit a => TestBit (BitShown a) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitShown

Methods

(.?.) :: BitShown a -> Position -> Bool Source #

BitRead a => BitRead (BitShown a) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitShown

Methods

bitRead :: String -> Maybe (BitShown a) Source #

BitShow a => BitShow (BitShown a) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitShown

bitShown :: BitShown a -> a Source #

Show the value as a bit string