Safe Haskell | None |
---|---|
Language | Haskell2010 |
Tax.Canada.Shared
Description
Common types and functions shared by multiple Canadian tax forms
Synopsis
- data TaxIncomeBracket (line :: Type -> Type) = TaxIncomeBracket {}
- data MedicalExpenses (line :: Type -> Type) = MedicalExpenses {}
- data BaseCredit (line :: Type -> Type) = BaseCredit {
- baseAmount :: line Centi
- reduction :: line Centi
- difference :: line Centi
- cont :: line Centi
- data SubCalculation (line :: Type -> Type) = SubCalculation {
- calculation :: line Centi
- result :: line Centi
- fixTaxIncomeBracket :: Maybe Centi -> Maybe (TaxIncomeBracket Maybe) -> TaxIncomeBracket Maybe -> TaxIncomeBracket Maybe
- fixBaseCredit :: BaseCredit Maybe -> BaseCredit Maybe
- fixMedicalExpenses :: Centi -> MedicalExpenses Maybe -> MedicalExpenses Maybe
- fixSubCalculation :: (Rational -> Rational) -> Maybe Centi -> SubCalculation Maybe
- subCalculationFields :: Text -> [Text] -> [Text] -> SubCalculation FieldConst
Documentation
data TaxIncomeBracket (line :: Type -> Type) Source #
Constructors
TaxIncomeBracket | |
Instances
data MedicalExpenses (line :: Type -> Type) Source #
Constructors
MedicalExpenses | |
Instances
data BaseCredit (line :: Type -> Type) Source #
Used in several provincial forms to calculate a fixed amount of tax credit reduced by income.
Constructors
BaseCredit | |
Fields
|
Instances
data SubCalculation (line :: Type -> Type) Source #
A pair of form fields appearing next to each other at the same line, the right field value always depending only on the left one.
Constructors
SubCalculation | |
Fields
|
Instances
fixTaxIncomeBracket :: Maybe Centi -> Maybe (TaxIncomeBracket Maybe) -> TaxIncomeBracket Maybe -> TaxIncomeBracket Maybe Source #
fixSubCalculation :: (Rational -> Rational) -> Maybe Centi -> SubCalculation Maybe Source #
subCalculationFields :: Text -> [Text] -> [Text] -> SubCalculation FieldConst Source #