I am trying to import this module from the REPL. I got the error below. Any clues ??? The functions works in the REPL when copied and pasted, however it doesn't work when define in the module. $ rlwrap -c --remember csi -p '(import sutils)' Warning: reference to possibly unbound identifier `with-input-from-string' in: Warning: str->sexp Warning: reference to possibly unbound identifier `call-with-output-string' in: Warning: sexp->str Error: during expansion of (import ...) - module unresolved: sutils Call history: [sexp->file] (##core#begin (close-output-port out)) [sexp->file] (close-output-port out) [sexp->file] (##core#undefined) (define (file->sexp filename) (define in (open-input-file filename)) (define sexp (read in)) (begin ... (##core#set! file->sexp (##core#lambda (filename) (define in (open-input-file filename)) (define sex...... (##core#lambda (filename) (define in (open-input-file filename)) (define sexp (read in)) (begin (clo...... [file->sexp] (##core#let ((in (##core#undefined)) (sexp (##core#undefined))) (##core#set! in (open-input-file fil...... [file->sexp] (##core#begin (##core#set! in (open-input-file filename)) (##core#set! sexp (read in)) (close-input-...... [file->sexp] (##core#set! in (open-input-file filename)) [file->sexp] (open-input-file filename) [file->sexp] (##core#set! sexp (read in)) [file->sexp] (read in) [file->sexp] (##core#begin (close-input-port in) sexp) [file->sexp] (close-input-port in) [file->sexp] (##core#undefined) [file->sexp] (##core#undefined) ;;---------------------------------------------;; File: sutils.import.scm (module sutils ( sexp->str str->sexp sexp->file file->sexp ) (import chicken scheme) ;; (use srfi-6) (define (sexp->str sexp) (call-with-output-string (lambda (out) (write sexp out)))) (define (str->sexp str) (with-input-from-string str (lambda () (read)))) (define (sexp->file filename sexp) (define out (open-output-file filename)) (begin (write sexp out) (close-output-port out))) (define (file->sexp filename) (define in (open-input-file filename)) (define sexp (read in)) (begin (close-input-port in) sexp)) ) ;;; End of module sutils ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;