Improve the `diagrams` tool support for ECLiPSe modules