haspara-0.0.0.1: A library providing definitions to work with monetary values.
Safe HaskellNone
LanguageHaskell2010

Haspara.Accounting.AccountKind

Documentation

data AccountKind Source #

Instances

Instances details
Enum AccountKind Source # 
Instance details

Defined in Haspara.Accounting.AccountKind

Eq AccountKind Source # 
Instance details

Defined in Haspara.Accounting.AccountKind

Ord AccountKind Source # 
Instance details

Defined in Haspara.Accounting.AccountKind

Show AccountKind Source # 
Instance details

Defined in Haspara.Accounting.AccountKind

Generic AccountKind Source # 
Instance details

Defined in Haspara.Accounting.AccountKind

Associated Types

type Rep AccountKind :: Type -> Type #

Hashable AccountKind Source # 
Instance details

Defined in Haspara.Accounting.AccountKind

ToJSON AccountKind Source #

ToJSON instance for AccountKind.

>>> Aeson.encode AccountKindAsset
"\"ASSET\""
>>> Aeson.encode AccountKindLiability
"\"LIABILITY\""
>>> Aeson.encode AccountKindEquity
"\"EQUITY\""
>>> Aeson.encode AccountKindRevenue
"\"REVENUE\""
>>> Aeson.encode AccountKindExpense
"\"EXPENSE\""
Instance details

Defined in Haspara.Accounting.AccountKind

FromJSON AccountKind Source #

FromJSON instance for AccountKind.

>>> Aeson.decode "\"Asset\"" :: Maybe AccountKind
Just AccountKindAsset
>>> Aeson.decode "\"aSSET\"" :: Maybe AccountKind
Just AccountKindAsset
>>> Aeson.decode "\"ASSET\"" :: Maybe AccountKind
Just AccountKindAsset
>>> Aeson.decode "\"LIABILITY\"" :: Maybe AccountKind
Just AccountKindLiability
>>> Aeson.decode "\"EQUITY\"" :: Maybe AccountKind
Just AccountKindEquity
>>> Aeson.decode "\"REVENUE\"" :: Maybe AccountKind
Just AccountKindRevenue
>>> Aeson.decode "\"EXPENSE\"" :: Maybe AccountKind
Just AccountKindExpense
Instance details

Defined in Haspara.Accounting.AccountKind

type Rep AccountKind Source # 
Instance details

Defined in Haspara.Accounting.AccountKind

type Rep AccountKind = D1 ('MetaData "AccountKind" "Haspara.Accounting.AccountKind" "haspara-0.0.0.1-GIZpgp6So3jGG6B29GnUaf" 'False) ((C1 ('MetaCons "AccountKindAsset" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AccountKindLiability" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AccountKindEquity" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AccountKindRevenue" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AccountKindExpense" 'PrefixI 'False) (U1 :: Type -> Type))))