Copyright | Alexander Krupenkin 2018 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | noportable |
Safe Haskell | None |
Language | Haskell2010 |
Bytes and BytesN primitive types.
Synopsis
- data Bytes
- type BytesN n = SizedByteArray n Bytes
The dynamic length Bytes
type
Simplest Byte Array
Instances
Eq Bytes | |
Ord Bytes | |
Show Bytes | |
IsString Bytes # | |
Defined in Data.Solidity.Prim.Bytes fromString :: String -> Bytes # | |
Semigroup Bytes | |
Monoid Bytes | |
ToJSON Bytes # | |
Defined in Data.Solidity.Prim.Bytes | |
FromJSON Bytes # | |
NormalForm Bytes | |
Defined in Data.ByteArray.Bytes toNormalForm :: Bytes -> () # | |
NFData Bytes | |
Defined in Data.ByteArray.Bytes | |
ByteArray Bytes | |
ByteArrayAccess Bytes | |
AbiGet Bytes Source # | |
AbiPut Bytes Source # | |
AbiType Bytes Source # | |
(KnownNat n, n <= 32) => IsString (BytesN n) # | |
Defined in Data.Solidity.Prim.Bytes fromString :: String -> BytesN n # | |
(KnownNat n, n <= 32) => ToJSON (BytesN n) # | |
Defined in Data.Solidity.Prim.Bytes | |
(KnownNat n, n <= 32) => FromJSON (BytesN n) # | |
(KnownNat n, n <= 32) => AbiGet (BytesN n) Source # | |
(KnownNat n, n <= 32) => AbiPut (BytesN n) Source # | |
n <= 32 => AbiType (BytesN n) Source # | |
The fixed length BytesN
type
type BytesN n = SizedByteArray n Bytes Source #
Sized byte array with fixed length in bytes
Orphan instances
IsString Bytes Source # | |
fromString :: String -> Bytes # | |
ToJSON Bytes Source # | |
FromJSON Bytes Source # | |
AbiGet ByteString Source # | |
abiGet :: Get ByteString Source # | |
AbiGet Bytes Source # | |
AbiPut ByteString Source # | |
AbiPut Bytes Source # | |
AbiType ByteString Source # | |
AbiType Bytes Source # | |
(KnownNat n, n <= 32) => IsString (BytesN n) Source # | |
fromString :: String -> BytesN n # | |
(KnownNat n, n <= 32) => ToJSON (BytesN n) Source # | |
(KnownNat n, n <= 32) => FromJSON (BytesN n) Source # | |
(KnownNat n, n <= 32) => AbiGet (BytesN n) Source # | |
(KnownNat n, n <= 32) => AbiPut (BytesN n) Source # | |
n <= 32 => AbiType (BytesN n) Source # | |