cborg-0.2.10.0: Concise Binary Object Representation (CBOR)
Copyright(c) Ben Gamari 2017-2018
LicenseBSD3-style (see LICENSE.txt)
Maintainerduncan@community.haskell.org
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.CBOR.ByteArray

Description

A ByteArray with more instances than ByteArray. Some day when these instances are reliably available from primitive we can likely replace this with ByteArray.

Synopsis

Simple byte arrays

newtype ByteArray Source #

Constructors

BA 

Fields

Instances

Instances details
IsString ByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray

Methods

fromString :: String -> ByteArray

IsList ByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray

Associated Types

type Item ByteArray

Methods

fromList :: [Item ByteArray] -> ByteArray

fromListN :: Int -> [Item ByteArray] -> ByteArray

toList :: ByteArray -> [Item ByteArray]

Show ByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray

Methods

showsPrec :: Int -> ByteArray -> ShowS

show :: ByteArray -> String

showList :: [ByteArray] -> ShowS

Eq ByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray

Methods

(==) :: ByteArray -> ByteArray -> Bool

(/=) :: ByteArray -> ByteArray -> Bool

Ord ByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray

Methods

compare :: ByteArray -> ByteArray -> Ordering

(<) :: ByteArray -> ByteArray -> Bool

(<=) :: ByteArray -> ByteArray -> Bool

(>) :: ByteArray -> ByteArray -> Bool

(>=) :: ByteArray -> ByteArray -> Bool

max :: ByteArray -> ByteArray -> ByteArray

min :: ByteArray -> ByteArray -> ByteArray

type Item ByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray

type Item ByteArray = Word8

Conversions

fromShortByteString :: ShortByteString -> ByteArray Source #

toShortByteString :: ByteArray -> ShortByteString Source #

fromByteString :: ByteString -> ByteArray Source #

toBuilder :: ByteArray -> Builder Source #