I've been using the following language definition file, eopl-printing.rkt,
#lang racket
(require (except-in eopl #%module-begin))
(provide (all-from-out eopl))
(provide #%module-begin)
as suggested in DrRacket EOPL Scheme output. All has being going well, except when I try to invoke an exn function as in:
#lang s-exp "eopl-printing.rkt"
(require rackunit)
(check-exn
exn:fail?
(lambda ()
(error 'hi "there")))
Instead of the test passing successfully as expected, I get a "exn:fail?: unbound identifier ..." message. I've read the documentation on modules and tried various ways to try to re-expose the Racket exn definitions but without any luck. Any suggestions?