bnb-staking-csvs-0.2.1.0: Generate CSV Exports of Your BNB Staking Rewards.
Safe HaskellNone
LanguageHaskell2010

Console.BnbStaking.Csv

Description

CSV serialization of BNB Staking Rewards.

Synopsis

Documentation

makeCsvContents :: [Reward] -> IO ByteString Source #

Build the CSV contents for the given rewards, including the header row.

data ExportData Source #

Datatype representing a single row in the CSV export.

Constructors

ExportData 

Fields

Instances

Instances details
Read ExportData Source # 
Instance details

Defined in Console.BnbStaking.Csv

Show ExportData Source # 
Instance details

Defined in Console.BnbStaking.Csv

Generic ExportData Source # 
Instance details

Defined in Console.BnbStaking.Csv

Associated Types

type Rep ExportData :: Type -> Type #

ToNamedRecord ExportData Source # 
Instance details

Defined in Console.BnbStaking.Csv

DefaultOrdered ExportData Source # 
Instance details

Defined in Console.BnbStaking.Csv

type Rep ExportData Source # 
Instance details

Defined in Console.BnbStaking.Csv

convertReward :: Reward -> IO ExportData Source #

Render a Reward into our target export data by converting to localtime(respecting DST), & formatting the amount column to 8 decimal places.

newtype MyZonedTime Source #

Wrapper type to support custom ToField instance.

Constructors

MyZonedTime 

Instances

Instances details
Read MyZonedTime Source # 
Instance details

Defined in Console.BnbStaking.Csv

Show MyZonedTime Source # 
Instance details

Defined in Console.BnbStaking.Csv

ToField MyZonedTime Source #

Render with %FT%T%Q%Ez formatting string.

Instance details

Defined in Console.BnbStaking.Csv

Methods

toField :: MyZonedTime -> Field #