From b50c3a694ca1ee430911da39847086594eb7d694 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 6 Jun 2020 12:38:06 -0700 Subject: [PATCH] ;lib: note issue with Journal's JSON --- hledger-lib/Hledger/Data/Json.hs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hledger-lib/Hledger/Data/Json.hs b/hledger-lib/Hledger/Data/Json.hs index 3f526a143..483baf3b0 100644 --- a/hledger-lib/Hledger/Data/Json.hs +++ b/hledger-lib/Hledger/Data/Json.hs @@ -203,6 +203,24 @@ instance FromJSON (DecimalRaw Integer) -- --And of course you can avoid `StandAloneDeriving` entirely if you’re willing to wrap `Decimal` in your own `newtype`. +-- XXX these will allow reading a Journal, but currently the +-- jdeclaredaccounttypes Map gets serialised as a JSON list, which +-- can't be read back. +-- +-- instance FromJSON AccountAlias +-- instance FromJSONKey AccountType where fromJSONKey = genericFromJSONKey defaultJSONKeyOptions +-- instance FromJSON AccountType +-- instance FromJSON ClockTime +-- instance FromJSON Commodity +-- instance FromJSON DateSpan +-- instance FromJSON Interval +-- instance FromJSON PeriodicTransaction +-- instance FromJSON PriceDirective +-- instance FromJSON TimeclockCode +-- instance FromJSON TimeclockEntry +-- instance FromJSON TransactionModifier +-- instance FromJSON Journal + -- Utilities