base-4.16.0.0: Basic libraries
Copyright(c) Roman Leshchinskiy 2009-2012
LicenseBSD-style
Maintainerlibraries@haskell.org
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.ByteArray

Description

Derived from primitive package.

Synopsis

Documentation

data ByteArray Source #

Boxed wrapper for ByteArray#.

Since ByteArray# is an unlifted type and not a member of kind Type, things like [ByteArray#] or IO ByteArray# are ill-typed. To work around this inconvenience this module provides a standard boxed wrapper, inhabiting Type. Clients are expected to use ByteArray in higher-level APIs, but wrap and unwrap ByteArray internally as they please and use functions from GHC.Exts.

Since: base-4.17.0.0

Constructors

ByteArray ByteArray# 

Instances

Instances details
Data ByteArray # 
Instance details

Defined in Data.ByteArray

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ByteArray -> c ByteArray Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ByteArray Source #

toConstr :: ByteArray -> Constr Source #

dataTypeOf :: ByteArray -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ByteArray) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ByteArray) Source #

gmapT :: (forall b. Data b => b -> b) -> ByteArray -> ByteArray Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ByteArray -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ByteArray -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> ByteArray -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ByteArray -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ByteArray -> m ByteArray Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ByteArray -> m ByteArray Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ByteArray -> m ByteArray Source #

Monoid ByteArray # 
Instance details

Defined in Data.ByteArray

Semigroup ByteArray # 
Instance details

Defined in Data.ByteArray

IsList ByteArray # 
Instance details

Defined in Data.ByteArray

Associated Types

type Item ByteArray Source #

Show ByteArray # 
Instance details

Defined in Data.ByteArray

Eq ByteArray # 
Instance details

Defined in Data.ByteArray

Ord ByteArray #

Non-lexicographic ordering. This compares the lengths of the byte arrays first and uses a lexicographic ordering if the lengths are equal. Subject to change between major versions.

Instance details

Defined in Data.ByteArray

type Item ByteArray # 
Instance details

Defined in Data.ByteArray