| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Web.CoinTracking.Imports.Types
Description
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.
Constructors
| CTImportData | |
Fields
| |
Instances
data CTTransactionType Source #
Possible types for an imported transaction.
Constructors
Instances
renderTransactionType :: IsString a => CTTransactionType -> a Source #
Render the CTTransactionType as CoinTracking displays/expects it.
An amount & currency specification.
Constructors
| Amount | |
Fields
| |
A pair containing a currency symbol & an amount.
Constructors
| Currency | |
Fields
| |
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 | |
Defined in Codec.Xlsx.Types.Common | |
| Generic RowIndex | |
| Num RowIndex | |
| Read RowIndex | |
| Integral RowIndex | |
Defined in Codec.Xlsx.Types.Common | |
| Real RowIndex | |
Defined in Codec.Xlsx.Types.Common Methods 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 #