hledger-web-1.16: Web interface for the hledger accounting tool

Safe HaskellNone
LanguageHaskell2010

Hledger.Web.Json

Contents

Synopsis

Instances

Utilities

readJsonFile :: FromJSON a => FilePath -> IO a Source #

Read a json from a file and decode/parse it as the target type, if we can. Example: >>> readJsonFile "in.json" :: IO MixedAmount

writeJsonFile :: ToJSON a => FilePath -> a -> IO () Source #

Write some to-JSON-convertible haskell value to a json file, if we can. Example: >>> writeJsonFile "out.json" nullmixedamt

Orphan instances

ToJSON Decimal Source # 
Instance details

ToJSON Account Source # 
Instance details

ToJSON MarketPrice Source # 
Instance details

ToJSON Transaction Source # 
Instance details

ToJSON GenericSourcePos Source # 
Instance details

ToJSON Posting Source # 
Instance details

ToJSON BalanceAssertion Source # 
Instance details

ToJSON Status Source # 
Instance details

ToJSON PostingType Source # 
Instance details

ToJSON MixedAmount Source # 
Instance details

ToJSON Amount Source # 
Instance details

ToJSON DigitGroupStyle Source # 
Instance details

ToJSON AmountStyle Source # 
Instance details

ToJSON AmountPrice Source # 
Instance details

ToJSON Side Source # 
Instance details

FromJSON Account Source # 
Instance details

FromJSON AccountDeclarationInfo Source # 
Instance details

FromJSON MarketPrice Source # 
Instance details

FromJSON Transaction Source # 
Instance details

FromJSON GenericSourcePos Source # 
Instance details

FromJSON Posting Source # 
Instance details

FromJSON BalanceAssertion Source # 
Instance details

FromJSON Status Source # 
Instance details

FromJSON PostingType Source # 
Instance details

FromJSON MixedAmount Source # 
Instance details

FromJSON Amount Source # 
Instance details

FromJSON DigitGroupStyle Source # 
Instance details

FromJSON AmountStyle Source # 
Instance details

FromJSON AmountPrice Source # 
Instance details

FromJSON Side Source # 
Instance details

Generic (DecimalRaw a) Source # 
Instance details

Associated Types

type Rep (DecimalRaw a) :: Type -> Type #

Methods

from :: DecimalRaw a -> Rep (DecimalRaw a) x #

to :: Rep (DecimalRaw a) x -> DecimalRaw a #

FromJSON (DecimalRaw Integer) Source # 
Instance details