cborg-0.2.8.0: Concise Binary Object Representation (CBOR)
Copyright(c) Ben Gamari 2017-2018
LicenseBSD3-style (see LICENSE.txt)
Maintainer[email protected]
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.CBOR.ByteArray.Sliced

Contents

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

Documentation

data SlicedByteArray Source #

Constructors

SBA 

Fields

Instances

Instances details
IsString SlicedByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray.Sliced

IsList SlicedByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray.Sliced

Associated Types

type Item SlicedByteArray Source #

Show SlicedByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray.Sliced

Eq SlicedByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray.Sliced

Ord SlicedByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray.Sliced

type Item SlicedByteArray Source # 
Instance details

Defined in Codec.CBOR.ByteArray.Sliced

Conversions

toByteString :: SlicedByteArray -> ByteString Source #

Note that this may require a copy.