Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Bytes = Bytes {}
- newtype Bytes# :: TYPE ('TupleRep '['BoxedRep 'Unlifted, 'IntRep, 'IntRep]) where
- Bytes# :: (# ByteArray#, Int#, Int# #) -> Bytes#
- data MutableBytes s = MutableBytes {}
- data UnmanagedBytes = UnmanagedBytes {}
- data BytesN (n :: Nat) = BytesN {}
- newtype ByteArrayN (n :: Nat) = ByteArrayN {}
Documentation
A slice of a ByteArray
.
newtype Bytes# :: TYPE ('TupleRep '['BoxedRep 'Unlifted, 'IntRep, 'IntRep]) where Source #
Bytes# :: (# ByteArray#, Int#, Int# #) -> Bytes# |
data BytesN (n :: Nat) Source #
A slice of a ByteArray
whose compile-time-known length is represented
by a phantom type variable. Consumers of this data constructor must be
careful to preserve the expected invariant.
newtype ByteArrayN (n :: Nat) Source #
A ByteArray
whose compile-time-known length is represented
by a phantom type variable. Consumers of this data constructor must be
careful to preserve the expected invariant.
Instances
KnownNat n => Show (ByteArrayN n) Source # | |
Defined in Data.Bytes.Types showsPrec :: Int -> ByteArrayN n -> ShowS # show :: ByteArrayN n -> String # showList :: [ByteArrayN n] -> ShowS # |