-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Fast and safe representation of a Base-32 string -- @package base32string @version 0.9.1 module Data.Base32String -- | Represents a Base32 string. Guarantees that all characters it contains -- are valid base32 characters. data Base32String -- | Smart constructor which validates that all the text are actually -- base-32 characters. b32String :: ByteString -> ByteString -> Base32String -- | Case insensitive variant of b32String, which converts all -- characters to upper case. b32String' :: ByteString -> ByteString -> Base32String -- | Converts a Binary to a Base32String value fromBinary :: Binary a => ByteString -> a -> Base32String -- | Converts a Base32String to a Binary value toBinary :: Binary a => ByteString -> Base32String -> a -- | Reads a ByteString as raw bytes and converts to base32 -- representation. We cannot use the instance Binary of ByteString -- because it provides a leading length, which is not what we want when -- dealing with raw bytes. fromBytes :: ByteString -> ByteString -> Base32String -- | Access to the raw bytes in a ByteString format. toBytes :: ByteString -> Base32String -> ByteString -- | Access to a Text representation of the Base32String toText :: Base32String -> Text -- | Converts a Text representation to a Base32String fromText :: ByteString -> Text -> Base32String instance Show Base32String instance Eq Base32String instance Ord Base32String module Data.Base32String.Default -- | Represents a Base32 string. Guarantees that all characters it contains -- are valid base32 characters. data Base32String b32String :: ByteString -> Base32String b32String' :: ByteString -> Base32String fromBinary :: Binary a => a -> Base32String toBinary :: Binary a => Base32String -> a fromBytes :: ByteString -> Base32String toBytes :: Base32String -> ByteString fromText :: Text -> Base32String toText :: Base32String -> Text instance ToJSON Base32String instance FromJSON Base32String