diff options
Diffstat (limited to 'geiser/doc.scm')
-rw-r--r-- | geiser/doc.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/geiser/doc.scm b/geiser/doc.scm index 01b9ce3..f655fd6 100644 --- a/geiser/doc.scm +++ b/geiser/doc.scm @@ -26,7 +26,8 @@ (define-module (geiser doc) #:export (autodoc - symbol-documentation) + symbol-documentation + object-signature) #:use-module (geiser utils) #:use-module (geiser modules) #:use-module (system vm program) @@ -51,6 +52,10 @@ (else (describe-application form))))) (else #f))) +(define (object-signature name obj) + (let ((args (obj-args obj))) + (and args (signature name args)))) + (define (describe-application form) (let* ((fun (car form)) (args (obj-args (symbol->object fun)))) |