summaryrefslogtreecommitdiff
path: root/scheme/guile/geiser/doc.scm
diff options
context:
space:
mode:
Diffstat (limited to 'scheme/guile/geiser/doc.scm')
-rw-r--r--scheme/guile/geiser/doc.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/scheme/guile/geiser/doc.scm b/scheme/guile/geiser/doc.scm
index 01b9ce3..f655fd6 100644
--- a/scheme/guile/geiser/doc.scm
+++ b/scheme/guile/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))))