if I can (require "foo.rkt")
how do I list everything that the foo.rkt
provides?
Are you looking for module->exports
?
ah, yes I think so - now…uhh…what do I need to require
for that to be visible?
the docs don’t seem to say?
It’s provided in racket/base
, so you should be able to use it right away?
Unless you meant something else
oh, sorry, yeah, its there, I was misreading the error message
darn, got to go, my son is up from his nap. Thanks
Ah I see the issue. So I use my own emacs ob-racket package that I maintain (and I think no one else uses maybe?) https://github.com/togakangaroo/ob-racket to run it within org mode. So within it, I was emitting racket scripts to a temporary directory and running them but not setting the current working directory to be that folder.
So (require "adjacent-file.rkt")
worked because it was relative to the current script (in the temp directory) but (module->exports "adjacent-file.rkt")
failed because it was looking in cwd. It’s odd that the two functions would identify paths differently, but I can patch this quickly