diff options
| author | Rutger Broekhoff | 2026-03-09 22:29:18 +0100 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-03-09 22:29:18 +0100 |
| commit | c90ff5253efd858a2bf0c20eaa2ee9763a402783 (patch) | |
| tree | d1c5ab837ece7034d882368f1beeeb56b934ac4d /lib/account/type_hierarchy.mli | |
| parent | 2f94997e2befc70ada84bd04a56831efe2747220 (diff) | |
| download | rdcapsis-c90ff5253efd858a2bf0c20eaa2ee9763a402783.tar.gz rdcapsis-c90ff5253efd858a2bf0c20eaa2ee9763a402783.zip | |
oha!
Diffstat (limited to 'lib/account/type_hierarchy.mli')
| -rw-r--r-- | lib/account/type_hierarchy.mli | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/account/type_hierarchy.mli b/lib/account/type_hierarchy.mli new file mode 100644 index 0000000..c346628 --- /dev/null +++ b/lib/account/type_hierarchy.mli | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | type path | ||
| 2 | (** The 'kernel' of account types: a hierarchy of valid types. A valid type is a | ||
| 3 | path that leads to a node in the hierarchy. *) | ||
| 4 | |||
| 5 | val children : path -> path list | ||
| 6 | val sub : path -> string -> path option | ||
| 7 | val super : path -> path option | ||
| 8 | val equal_path : path -> path -> bool | ||
| 9 | val is_prefix : path -> prefix:path -> bool | ||
| 10 | val polarity : path -> Money.polarity | ||
| 11 | val asset : path | ||
| 12 | val equity : path | ||
| 13 | val expense : path | ||
| 14 | val income : path | ||
| 15 | val liability : path | ||