lib: Add Functor instance for CompoundPeriodicReport.

This commit is contained in:
Stephen Morgan 2020-09-30 16:07:44 +10:00 committed by Simon Michael
parent affc8d10f2
commit 795134777c

View File

@ -148,7 +148,7 @@ data CompoundPeriodicReport a b = CompoundPeriodicReport
, cbrDates :: [DateSpan] , cbrDates :: [DateSpan]
, cbrSubreports :: [(String, PeriodicReport a b, Bool)] , cbrSubreports :: [(String, PeriodicReport a b, Bool)]
, cbrTotals :: PeriodicReportRow () b , cbrTotals :: PeriodicReportRow () b
} deriving (Show, Generic, ToJSON) } deriving (Show, Functor, Generic, ToJSON)
-- | Description of one subreport within a compound balance report. -- | Description of one subreport within a compound balance report.
-- Part of a "CompoundBalanceCommandSpec", but also used in hledger-lib. -- Part of a "CompoundBalanceCommandSpec", but also used in hledger-lib.