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

Codec.Scale.Skip

Description

This type helps to skip fields in encoded data type.

Synopsis

Documentation

newtype Skip a Source #

This type hide filed from encoding context. It's useful in cases when serialization impossible or not needed. For decoding wrapped type should have Default instance.

Constructors

Skip 

Fields

Instances

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

Defined in Codec.Scale.Skip

Methods

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

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

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

Defined in Codec.Scale.Skip

Methods

compare :: Skip a -> Skip a -> Ordering #

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

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

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

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

max :: Skip a -> Skip a -> Skip a #

min :: Skip a -> Skip a -> Skip a #

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

Defined in Codec.Scale.Skip

Methods

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

show :: Skip a -> String #

showList :: [Skip a] -> ShowS #

Default a => Default (Skip a) Source # 
Instance details

Defined in Codec.Scale.Skip

Methods

def :: Skip a #

Default a => Decode (Skip a) Source # 
Instance details

Defined in Codec.Scale.Skip

Methods

get :: Get (Skip a) Source #

Encode (Skip a) Source # 
Instance details

Defined in Codec.Scale.Skip

Methods

put :: Putter (Skip a) Source #