Improve the `diagrams` tool support for SICStus Prolog modules