12

I would like to set the language that my racket REPL is using interactively, like this:

-> #lang typed/racket
; readline-input:15:0: read: #lang not enabled in the current context [,bt for
;   context]
; typed/racket: undefined;
;  cannot reference undefined identifier
; [,bt for context]`

But it gives me this error:

-> ,bt
; typed/racket: undefined;
;  cannot reference undefined identifier

What is my error?

djhaskin987
  • 9,741
  • 4
  • 50
  • 86

1 Answers1

17

From the terminal you can choose what language to use when you start racket:

racket -I typed/racket
Sylwester
  • 47,942
  • 4
  • 47
  • 79
  • 9
    is there a way to change the language once the REPL has already been started? that would be useful when launching a REPL session using, say, `M-x racket-repl` in Emacs. – Erik Kaplun Jun 01 '15 at 06:22