HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulescale-1.1.0.0Haskell2010

Codec.Scale.Class

  • 4 classes
  • Packagescale-1.1.0.0
  • Exports4
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceClass.hs
classclass Encode a where
#

A class for encoding datatypes to SCALE format.

If your compiler has support for the DeriveGeneric and DefaultSignatures language extensions (ghc >= 7.2.1), the put method will have default generic implementations.

To use this option, simply add a deriving Generic clause to your datatype and declare a Encode instance for it without giving a definition for put.

Methods

Instances40Encode, …
classclass GEncode a where
#

A class for encoding generically composed datatypes to SCALE format.

Methods

Instances4GEncode
classclass Decode a where
#

A class for decoding datatypes from SCALE format.

If your compiler has support for the DeriveGeneric and DefaultSignatures language extensions (ghc >= 7.2.1), the get method will have default generic implementations.

To use this option, simply add a deriving Generic clause to your datatype and declare a Decode instance for it without giving a definition for get.

Methods

Instances40Decode, …
classclass GDecode a where
#

A class for decoding generically composed datatypes from SCALE format.

Methods

Instances4GDecode