-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Compact representation of ASCII strings -- -- ASCII strings stored using just 7 bits per character. Compared to -- ByteString, this saves you a whole byte per 8 characters. @package ascii-string @version 1 module AsciiString -- | Compact representation of ASCII string. data AsciiString -- | Get the amount of septets. length :: AsciiString -> Int -- | Construct from a list of septets encoded in Word8, ignoring the -- 8th bit. fromSeptetList :: [Word8] -> AsciiString -- | Convert from ByteString, ignoring each 8th bit in it. fromByteString :: ByteString -> AsciiString -- | Convert from ShortByteString, ignoring each 8th bit in it. fromShortByteString :: ShortByteString -> AsciiString -- | Convert to a list of septets represented by Word8 with the 8th -- bit always empty. toSeptetList :: AsciiString -> [Word8] -- | Convert to bytestring. toByteString :: AsciiString -> ByteString -- | Convert to short bytestring. toShortByteString :: AsciiString -> ShortByteString instance GHC.Classes.Eq AsciiString.AsciiString instance GHC.Classes.Ord AsciiString.AsciiString instance GHC.Generics.Generic AsciiString.AsciiString instance Data.Hashable.Class.Hashable AsciiString.AsciiString instance GHC.Show.Show AsciiString.AsciiString instance Data.String.IsString AsciiString.AsciiString instance Data.Serialize.Serialize AsciiString.AsciiString