Calling main in standalone executable
16:43 08 Jan 2026

Consider this snippet:

#lang racket/base
(provide main)

(define (main)
  (displayln "hi"))

When I run this with racket -tm test.rkt I see 'hi'.

But when I compile this with raco exe test.rkt, the executable doesn't print 'hi'. Is there a similar flag for raco exe that would result in the executable running main?

racket raco