Skip to content

Instantly share code, notes, and snippets.

@greghendershott
Last active August 4, 2018 14:28
Show Gist options
  • Save greghendershott/2d45daf8ee59e4c9e5aa5f516440daf8 to your computer and use it in GitHub Desktop.
Save greghendershott/2d45daf8ee59e4c9e5aa5f516440daf8 to your computer and use it in GitHub Desktop.
#lang racket/base
(module m racket/base
(provide (struct-out exn:fail)
(rename-out [exn-message exn:fail-message]
[exn-continuation-marks exn:fail-continuation-marks])))
(require 'm)
(define e (exn:fail "foo" (current-continuation-marks)))
(exn-message e) ;still works
(exn:fail-message e) ;also works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment