HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehledger-lib-1.52.4GHC2021

Hledger.Data.Json

Contents
  1. Instances
  2. Utilities
Synopsis

Instances

Utilities

valuewriteJsonFile :: ToJSON a => FilePath -> a -> IO ()

Write a JSON-convertible haskell value to a pretty-printed JSON file. Eg: writeJsonFile "a.json" nulltransaction

valuereadJsonFile :: FromJSON a => FilePath -> IO a

Read a JSON file and decode it to the target type, or raise an error if we can't. Eg: readJsonFile "a.json" :: IO Transaction

Orphan instances

62 instances