packages feed

tax-ato-2023.2: tax-ato.cabal

cabal-version:       2.2
name:                tax-ato
version:             2023.2
synopsis:            Tax types and computations for Australia
description:
  This library provides types and tax computations for tax
  in Australia (ATO = /Australian Taxation Office/).  It is
  based on the <https://hackage.haskell.org/package/tax tax>
  library.
license:             AGPL-3.0-or-later
license-file:        LICENSE
author:              Fraser Tweedale
maintainer:          frase@frase.id.au
copyright:           Copyright (C) 2018-2023 Fraser Tweedale
category:            Finance
build-type:          Simple
tested-with:         GHC ==8.10.7 || ==9.0.2 || ==9.2.7 || ==9.4.4 || ==9.6.1
extra-source-files:
  CHANGELOG.md
  .hlint.yaml

homepage:            https://github.com/frasertweedale/hs-tax-ato
bug-reports:         https://github.com/frasertweedale/hs-tax-ato/issues
source-repository head
  type: git
  location: https://github.com/frasertweedale/hs-tax-ato.git

common common
  default-language: Haskell2010
  ghc-options:
    -Wall
    -Wcompat
    -Werror=missing-methods
    -Widentities
    -Wincomplete-record-updates
    -Wincomplete-uni-patterns
    -Wmissing-export-lists
    -Wnoncanonical-monad-instances
    -Wpartial-fields
    -Wredundant-constraints
    -Wunused-packages
    -fhide-source-paths
  if impl(ghc >= 9.0)
    ghc-options:
      -Winvalid-haddock
      -Werror=unicode-bidirectional-format-characters
  if impl(ghc >= 9.2)
    ghc-options:
      -Wimplicit-lift
      -Woperator-whitespace
      -Wredundant-bang-patterns
  if impl(ghc >= 9.4)
    ghc-options:
      -Wredundant-strictness-flags
  build-depends:
    base >= 4.14 && < 5

library
  import: common
  hs-source-dirs:      src
  exposed-modules:
    Data.Tax.ATO
    Data.Tax.ATO.CGT
    Data.Tax.ATO.Common
    Data.Tax.ATO.Days
    Data.Tax.ATO.PrivateHealthInsuranceRebate
    Data.Tax.ATO.Rounding
    Data.Tax.ATO.FY.FY2017
    Data.Tax.ATO.FY.FY2018
    Data.Tax.ATO.FY.FY2019
    Data.Tax.ATO.FY.FY2020
    Data.Tax.ATO.FY.FY2021
    Data.Tax.ATO.FY.FY2022
    Data.Tax.ATO.FY.FY2023
  build-depends:
    , lens >= 4.12 && < 6
    , time >= 1.5 && < 1.13
    , tax >= 0.2 && < 0.3