packages feed

tilia-0.0.1.0: corpora/vendored/import/merging-keeps-a-trailing-comment.hs

module Ledger.Summary where

import Ledger.Posting (postingDate)
import Ledger.Posting
  ( postingAccount,
    postingAmount -- signed, negative for credits
  )

total :: [Posting] -> Int
total = sum . map postingAmount