Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Type definitions, instances, & utility functions for CoinTracking imports.
Synopsis
- data CTImportData = CTImportData {}
- data CTTransactionType
- = Trade
- | Deposit
- | Withdrawal
- | Income
- | Mining
- | GiftTipIn
- | Spend
- | Donation
- | GiftOut
- | Stolen
- | Lost
- | Airdrop
- | Staking
- | Masternode
- | Minting
- | DividendsIncome
- | LendingIncome
- | InterestIncome
- | RewardBonus
- | MiningCommercial
- | MarginProfit
- | DerivativesFuturesProfit
- | OtherIncome
- | IncomeNonTaxable
- | OtherIncomeNonTaxable
- | MarginLoss
- | MarginFee
- | BorrowingFee
- | SettlementFee
- | DerivativesFuturesLoss
- | OtherFee
- | OtherExpense
- | ExpenseNonTaxable
- | MarginTrade
- | DerivativesFuturesTrade
- renderTransactionType :: IsString a => CTTransactionType -> a
- data Amount = Amount {}
- data Currency = Currency {
- cPrecision :: Int
- cTicker :: Text
- data RowIndex
- data ColumnIndex
Documentation
data CTImportData Source #
Represents a single row in an export.
CTImportData | |
|
Instances
data CTTransactionType Source #
Possible types for an imported transaction.
Instances
renderTransactionType :: IsString a => CTTransactionType -> a Source #
Render the CTTransactionType
as CoinTracking displays/expects it.
An amount & currency specification.
Amount | |
|
A pair containing a currency symbol & an amount.
Currency | |
|
Instances
Generic Currency Source # | |
Read Currency Source # | |
Show Currency Source # | |
Eq Currency Source # | |
type Rep Currency Source # | |
Defined in Web.CoinTracking.Imports.Types type Rep Currency = D1 ('MetaData "Currency" "Web.CoinTracking.Imports.Types" "cointracking-imports-0.1.0.2-6gm3lzJBuy8meiayId1nK" 'False) (C1 ('MetaCons "Currency" 'PrefixI 'True) (S1 ('MetaSel ('Just "cPrecision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "cTicker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
Instances
Enum RowIndex | |
Generic RowIndex | |
Num RowIndex | |
Read RowIndex | |
Integral RowIndex | |
Defined in Codec.Xlsx.Types.Common | |
Real RowIndex | |
Defined in Codec.Xlsx.Types.Common toRational :: RowIndex -> Rational # | |
Show RowIndex | |
NFData RowIndex | |
Defined in Codec.Xlsx.Types.Common | |
Eq RowIndex | |
Ord RowIndex | |
Defined in Codec.Xlsx.Types.Common | |
ToAttrVal RowIndex | |
Defined in Codec.Xlsx.Types.Common | |
type Rep RowIndex | |
Defined in Codec.Xlsx.Types.Common |
data ColumnIndex #