module.scm 426 B

1234567891011121314151617
  1. (module (arguile base module)
  2. #:export (re-export-modules))
  3. (use ((srfi srfi-1) #:select (append-map))
  4. (arguile base mac)
  5. (arguile base fn))
  6. (mac re-export-modules x
  7. ((_ m ...)
  8. #`(re-export
  9. #,@(datum->syntax x
  10. (append-map
  11. (fn (m)
  12. (module-map (fn (name data) name)
  13. (resolve-interface (syntax->datum m))))
  14. #'(m ...))))))