[racket] Embedded docs
Responder wrote:
--- begin ---
You need to enable @{...} syntax.
If you module currently starts
#lang racket/base
change it to
#lang at-exp racket/base
which mixes @{...} syntax support onto the `racket/base' language.
--- end ---
My reply:
It doesn't work. I get
module: illegal use (not at top-level) in: (module maths racket (provide
http-get) (require racket/port) (require net/url) (require scribble/srcdoc)
(provide/doc (proc-doc/names http-get (-> string? string?) (string-url) ("Say
something meaningful about http-get."))) (define (http-get url-as-string)
(port->string (get-pure-port (string->url url-as-string)))))
It seems that you can't mix #lang declaration with a module.
What else you got?
You know, I never get all this hard work in python.