Haspara.Accounting.AccountKind
data AccountKind Source #
Constructors
Defined in Haspara.Accounting.AccountKind
Methods
succ :: AccountKind -> AccountKind #
pred :: AccountKind -> AccountKind #
toEnum :: Int -> AccountKind #
fromEnum :: AccountKind -> Int #
enumFrom :: AccountKind -> [AccountKind] #
enumFromThen :: AccountKind -> AccountKind -> [AccountKind] #
enumFromTo :: AccountKind -> AccountKind -> [AccountKind] #
enumFromThenTo :: AccountKind -> AccountKind -> AccountKind -> [AccountKind] #
(==) :: AccountKind -> AccountKind -> Bool #
(/=) :: AccountKind -> AccountKind -> Bool #
compare :: AccountKind -> AccountKind -> Ordering #
(<) :: AccountKind -> AccountKind -> Bool #
(<=) :: AccountKind -> AccountKind -> Bool #
(>) :: AccountKind -> AccountKind -> Bool #
(>=) :: AccountKind -> AccountKind -> Bool #
max :: AccountKind -> AccountKind -> AccountKind #
min :: AccountKind -> AccountKind -> AccountKind #
showsPrec :: Int -> AccountKind -> ShowS #
show :: AccountKind -> String #
showList :: [AccountKind] -> ShowS #
Associated Types
type Rep AccountKind :: Type -> Type #
from :: AccountKind -> Rep AccountKind x #
to :: Rep AccountKind x -> AccountKind #
hashWithSalt :: Int -> AccountKind -> Int #
hash :: AccountKind -> Int #
ToJSON instance for AccountKind.
ToJSON
AccountKind
>>> Aeson.encode AccountKindAsset "\"ASSET\"" >>> Aeson.encode AccountKindLiability "\"LIABILITY\"" >>> Aeson.encode AccountKindEquity "\"EQUITY\"" >>> Aeson.encode AccountKindRevenue "\"REVENUE\"" >>> Aeson.encode AccountKindExpense "\"EXPENSE\""
>>>
Aeson.encode AccountKindAsset
Aeson.encode AccountKindLiability
Aeson.encode AccountKindEquity
Aeson.encode AccountKindRevenue
Aeson.encode AccountKindExpense
toJSON :: AccountKind -> Value #
toEncoding :: AccountKind -> Encoding #
toJSONList :: [AccountKind] -> Value #
toEncodingList :: [AccountKind] -> Encoding #
FromJSON instance for AccountKind.
FromJSON
>>> 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
Aeson.decode "\"Asset\"" :: Maybe AccountKind
Aeson.decode "\"aSSET\"" :: Maybe AccountKind
Aeson.decode "\"ASSET\"" :: Maybe AccountKind
Aeson.decode "\"LIABILITY\"" :: Maybe AccountKind
Aeson.decode "\"EQUITY\"" :: Maybe AccountKind
Aeson.decode "\"REVENUE\"" :: Maybe AccountKind
Aeson.decode "\"EXPENSE\"" :: Maybe AccountKind
parseJSON :: Value -> Parser AccountKind #
parseJSONList :: Value -> Parser [AccountKind] #
accountKindText :: AccountKind -> Text Source #