safe-money-serialise-0.1: Instances from the serialise library for the safe-money library.

Safe HaskellNone
LanguageHaskell2010

Money.Serialise

Contents

Description

This module only exports orphan Serialise instances. Import as:

import Money.Serialise ()

Orphan instances

Serialise SomeDense Source #

Compatible with Dense.

Instance details

Serialise SomeDiscrete Source #

Compatible with Discrete.

Instance details

Serialise SomeExchangeRate Source #

Compatible with ExchangeRate.

Instance details

KnownSymbol currency => Serialise (Dense currency) Source #

Compatible with SomeDense.

Instance details

Methods

encode :: Dense currency -> Encoding #

decode :: Decoder s (Dense currency) #

encodeList :: [Dense currency] -> Encoding #

decodeList :: Decoder s [Dense currency] #

(KnownSymbol currency, GoodScale scale) => Serialise (Discrete' currency scale) Source #

Compatible with SomeDiscrete.

Instance details

Methods

encode :: Discrete' currency scale -> Encoding #

decode :: Decoder s (Discrete' currency scale) #

encodeList :: [Discrete' currency scale] -> Encoding #

decodeList :: Decoder s [Discrete' currency scale] #

(KnownSymbol src, KnownSymbol dst) => Serialise (ExchangeRate src dst) Source #

Compatible with SomeExchangeRate.

Instance details

Methods

encode :: ExchangeRate src dst -> Encoding #

decode :: Decoder s (ExchangeRate src dst) #

encodeList :: [ExchangeRate src dst] -> Encoding #

decodeList :: Decoder s [ExchangeRate src dst] #