[racket] module->language-info at repl

From: Jon Rafkind (rafkind at cs.utah.edu)
Date: Thu Sep 1 14:50:52 EDT 2011

The repl doesn't seem to invoke the module language's get-info procedure. My #lang has a `get-info' procedure that is passed to the module-reader by #:info
honu-info. get-info is defined as

(provide honu-info)
(define (honu-info key default default-filter)
  (printf "get info for ~a\n" key)
  (case key
    [(color-lexer) (dynamic-require 'honu/core/read
    [(configure-runtime) `(#(honu/core/runtime configure))]
      (default-filter key default)]))

It seems only drracket will call `get-info', though. Is there a way to make the repl call this as well, and if it doesn't can we make it?

Posted on the users mailing list.