Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loading a module from the current directory in racket

Tags:

racket

I have a file euler.rkt in my current working directory. How do I load it as a module?

-> (require euler)
; readline-input:20:9: euler: standard-module-name-resolver: collection not
;   found: "euler" in any of: (#<path:/home/ben/.racket/5.2.1/collects>
;   #<path:/home/ben/racket/collects>) in: euler [,bt for context]
-> 

Should I add my directory to collects? If so, what is the correct way to do it?

like image 641
BnMcGn Avatar asked Jun 04 '12 13:06

BnMcGn


1 Answers

Try this:

(require "euler.rkt")
like image 195
soegaard Avatar answered Oct 14 '22 08:10

soegaard