From 02945f9bfae2ad6d1a400176914186c85527d2ac Mon Sep 17 00:00:00 2001 From: Robby Findler Date: Wed, 29 Oct 2014 09:02:14 -0500 Subject: [PATCH] small tweaks to raco show-dependencies - print '#%kernel instead of (quote #%kernel) - add -l for more human-friendly output that shows direct requires original commit: 3d2fdbc8cf4eaa4ddf33c4b2052d3fe14c038c29 --- .../analysis/show-dependencies.rkt | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/pkgs/macro-debugger-pkgs/macro-debugger-text-lib/macro-debugger/analysis/show-dependencies.rkt b/pkgs/macro-debugger-pkgs/macro-debugger-text-lib/macro-debugger/analysis/show-dependencies.rkt index d095ab6..6c2c575 100644 --- a/pkgs/macro-debugger-pkgs/macro-debugger-text-lib/macro-debugger/analysis/show-dependencies.rkt +++ b/pkgs/macro-debugger-pkgs/macro-debugger-text-lib/macro-debugger/analysis/show-dependencies.rkt @@ -1,6 +1,7 @@ #lang racket/base (require racket/cmdline racket/match + racket/pretty raco/command-name syntax/modresolve "private/util.rkt") @@ -58,7 +59,7 @@ (define (module-pathstring A) (symbol->string B))] + (symbolmodpath excludes) #:exclude-deps (map ->modpath exclude-deps) #:show-context? context? + #:multi-line-context? multi-line-context? (map ->modpath module-path))))) (module* main #f @@ -154,12 +174,12 @@ For example, - racket -lm macro-debugger/analysis/show-dependencies -- -bc mzscheme + raco show-dependencies -bc mzscheme shows the additional modules used to implement mzscheme beyond those already needed for the implementation of racket/base. And - racket -lm macro-debugger/analysis/show-dependencies -- -bc syntax/parse/pre + raco show-dependencies -bl syntax/parse/pre shows that syntax/parse/pre has no dependencies on the contract library. Actually, it shows that it has no *residual* dependencies;