scale-1.0.0.0: SCALE v2.0 codec for Haskell Web3 library.
CopyrightAleksandr Krupenkin 2016-2021
LicenseApache-2.0
Maintainermail@akru.me
Stabilityexperimental
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Codec.Scale.Core

Description

Particular core type instances.

Synopsis

Documentation

newtype Compact a Source #

A "compact" or general integer encoding is sufficient for encoding large integers (up to 2**536) and is more efficient at encoding most values than the fixed-width version.

Constructors

Compact 

Fields

Instances

Instances details
Eq a => Eq (Compact a) Source # 
Instance details

Defined in Codec.Scale.Compact

Methods

(==) :: Compact a -> Compact a -> Bool #

(/=) :: Compact a -> Compact a -> Bool #

Ord a => Ord (Compact a) Source # 
Instance details

Defined in Codec.Scale.Compact

Methods

compare :: Compact a -> Compact a -> Ordering #

(<) :: Compact a -> Compact a -> Bool #

(<=) :: Compact a -> Compact a -> Bool #

(>) :: Compact a -> Compact a -> Bool #

(>=) :: Compact a -> Compact a -> Bool #

max :: Compact a -> Compact a -> Compact a #

min :: Compact a -> Compact a -> Compact a #

Show a => Show (Compact a) Source # 
Instance details

Defined in Codec.Scale.Compact

Methods

showsPrec :: Int -> Compact a -> ShowS #

show :: Compact a -> String #

showList :: [Compact a] -> ShowS #

Integral a => Decode (Compact a) Source # 
Instance details

Defined in Codec.Scale.Compact

Methods

get :: Get (Compact a) Source #

Integral a => Encode (Compact a) Source # 
Instance details

Defined in Codec.Scale.Compact

Methods

put :: Putter (Compact a) Source #

Orphan instances

Decode Bool Source # 
Instance details

Methods

get :: Get Bool Source #

Decode Int8 Source # 
Instance details

Methods

get :: Get Int8 Source #

Decode Int16 Source # 
Instance details

Methods

get :: Get Int16 Source #

Decode Int32 Source # 
Instance details

Methods

get :: Get Int32 Source #

Decode Int64 Source # 
Instance details

Methods

get :: Get Int64 Source #

Decode Word8 Source # 
Instance details

Methods

get :: Get Word8 Source #

Decode Word16 Source # 
Instance details

Methods

get :: Get Word16 Source #

Decode Word32 Source # 
Instance details

Methods

get :: Get Word32 Source #

Decode Word64 Source # 
Instance details

Methods

get :: Get Word64 Source #

Decode () Source # 
Instance details

Methods

get :: Get () Source #

Decode ByteString Source # 
Instance details

Decode Text Source # 
Instance details

Methods

get :: Get Text Source #

Encode Bool Source # 
Instance details

Methods

put :: Putter Bool Source #

Encode Int8 Source # 
Instance details

Methods

put :: Putter Int8 Source #

Encode Int16 Source # 
Instance details

Methods

put :: Putter Int16 Source #

Encode Int32 Source # 
Instance details

Methods

put :: Putter Int32 Source #

Encode Int64 Source # 
Instance details

Methods

put :: Putter Int64 Source #

Encode Word8 Source # 
Instance details

Methods

put :: Putter Word8 Source #

Encode Word16 Source # 
Instance details

Encode Word32 Source # 
Instance details

Encode Word64 Source # 
Instance details

Encode () Source # 
Instance details

Methods

put :: Putter () Source #

Encode ByteString Source # 
Instance details

Encode Text Source # 
Instance details

Methods

put :: Putter Text Source #

Decode a => Decode [a] Source # 
Instance details

Methods

get :: Get [a] Source #

Decode (Maybe Bool) Source # 
Instance details

Methods

get :: Get (Maybe Bool) Source #

Decode a => Decode (Maybe a) Source # 
Instance details

Methods

get :: Get (Maybe a) Source #

(Decode a, Unbox a) => Decode (Vector a) Source # 
Instance details

Methods

get :: Get (Vector a) Source #

Decode (Vector Bit) Source # 
Instance details

Methods

get :: Get (Vector Bit) Source #

Encode a => Encode [a] Source # 
Instance details

Methods

put :: Putter [a] Source #

Encode (Maybe Bool) Source # 
Instance details

Methods

put :: Putter (Maybe Bool) Source #

Encode a => Encode (Maybe a) Source # 
Instance details

Methods

put :: Putter (Maybe a) Source #

(Encode a, Unbox a) => Encode (Vector a) Source # 
Instance details

Methods

put :: Putter (Vector a) Source #

Encode (Vector Bit) Source # 
Instance details

Methods

put :: Putter (Vector Bit) Source #

(Decode a, Decode b) => Decode (Either a b) Source # 
Instance details

Methods

get :: Get (Either a b) Source #

(Decode a1, Decode a2) => Decode (a1, a2) Source # 
Instance details

Methods

get :: Get (a1, a2) Source #

(Encode a, Encode b) => Encode (Either a b) Source # 
Instance details

Methods

put :: Putter (Either a b) Source #

(Encode a1, Encode a2) => Encode (a1, a2) Source # 
Instance details

Methods

put :: Putter (a1, a2) Source #

(Decode a1, Decode a2, Decode a3) => Decode (a1, a2, a3) Source # 
Instance details

Methods

get :: Get (a1, a2, a3) Source #

(Encode a1, Encode a2, Encode a3) => Encode (a1, a2, a3) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3) Source #

(Decode a1, Decode a2, Decode a3, Decode a4) => Decode (a1, a2, a3, a4) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4) Source #

(Encode a1, Encode a2, Encode a3, Encode a4) => Encode (a1, a2, a3, a4) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5) => Decode (a1, a2, a3, a4, a5) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5) => Encode (a1, a2, a3, a4, a5) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6) => Decode (a1, a2, a3, a4, a5, a6) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6) => Encode (a1, a2, a3, a4, a5, a6) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7) => Decode (a1, a2, a3, a4, a5, a6, a7) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7) => Encode (a1, a2, a3, a4, a5, a6, a7) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8) => Decode (a1, a2, a3, a4, a5, a6, a7, a8) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8) => Encode (a1, a2, a3, a4, a5, a6, a7, a8) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10, Decode a11) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10, Encode a11) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10, Decode a11, Decode a12) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10, Encode a11, Encode a12) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10, Decode a11, Decode a12, Decode a13) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10, Encode a11, Encode a12, Encode a13) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10, Decode a11, Decode a12, Decode a13, Decode a14) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10, Encode a11, Encode a12, Encode a13, Encode a14) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10, Decode a11, Decode a12, Decode a13, Decode a14, Decode a15) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10, Encode a11, Encode a12, Encode a13, Encode a14, Encode a15) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10, Decode a11, Decode a12, Decode a13, Decode a14, Decode a15, Decode a16) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10, Encode a11, Encode a12, Encode a13, Encode a14, Encode a15, Encode a16) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10, Decode a11, Decode a12, Decode a13, Decode a14, Decode a15, Decode a16, Decode a17) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10, Encode a11, Encode a12, Encode a13, Encode a14, Encode a15, Encode a16, Encode a17) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10, Decode a11, Decode a12, Decode a13, Decode a14, Decode a15, Decode a16, Decode a17, Decode a18) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10, Encode a11, Encode a12, Encode a13, Encode a14, Encode a15, Encode a16, Encode a17, Encode a18) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10, Decode a11, Decode a12, Decode a13, Decode a14, Decode a15, Decode a16, Decode a17, Decode a18, Decode a19) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10, Encode a11, Encode a12, Encode a13, Encode a14, Encode a15, Encode a16, Encode a17, Encode a18, Encode a19) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) Source #

(Decode a1, Decode a2, Decode a3, Decode a4, Decode a5, Decode a6, Decode a7, Decode a8, Decode a9, Decode a10, Decode a11, Decode a12, Decode a13, Decode a14, Decode a15, Decode a16, Decode a17, Decode a18, Decode a19, Decode a20) => Decode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) Source # 
Instance details

Methods

get :: Get (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) Source #

(Encode a1, Encode a2, Encode a3, Encode a4, Encode a5, Encode a6, Encode a7, Encode a8, Encode a9, Encode a10, Encode a11, Encode a12, Encode a13, Encode a14, Encode a15, Encode a16, Encode a17, Encode a18, Encode a19, Encode a20) => Encode (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) Source # 
Instance details

Methods

put :: Putter (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) Source #