<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
<div>I have the following code in a file named `foo.rkt`:</div><div><br></div><div>```</div><div>#lang racket/load</div><div><br></div><div>(provide foo)</div><div><br></div><div>(define foo 'bar)</div><div>```</div>
<div>
<br></div><div>When trying to run the code, I got the following confusing error:</div><div><br></div><div>> `provide`: not at module level in: `(provide foo)`</div><div><br></div><div>What does this mean? Why `provide` is not at module level?</div>
<div>Use `#lang racket` instead does not pose this problem. I am</div></div><div style="font-family:arial,sans-serif;font-size:13px">confused. Any idea?</div><div style="font-family:arial,sans-serif;font-size:13px"><br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Yours truly,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Yi</div></div>