cborg-0.2.9.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 #

Constructors

BA 

Fields

Instances

Instances details
IsString ByteArray # 
Instance details

Defined in Codec.CBOR.ByteArray

Methods

fromString :: String -> ByteArray

IsList ByteArray # 
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 # 
Instance details

Defined in Codec.CBOR.ByteArray

Methods

showsPrec :: Int -> ByteArray -> ShowS

show :: ByteArray -> String

showList :: [ByteArray] -> ShowS

Eq ByteArray # 
Instance details

Defined in Codec.CBOR.ByteArray

Methods

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

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

Ord ByteArray # 
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 # 
Instance details

Defined in Codec.CBOR.ByteArray

type Item ByteArray = Word8

Conversions

fromShortByteString :: ShortByteString -> ByteArray #

toShortByteString :: ByteArray -> ShortByteString #

fromByteString :: ByteString -> ByteArray #

toBuilder :: ByteArray -> Builder #