HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Modulehledger-lib-1.52.4GHC2021

Hledger.Data.Json

  • 3 values

Instances

0 declarations

Utilities

3 declarations
valuetoJsonText :: ToJSON a => a -> Text
#

Show a JSON-convertible haskell value as pretty-printed JSON text.

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