use new `defmodule' in the Reference notation section
This commit is contained in:
parent
eb924d75b6
commit
d4c63af3d6
|
@ -15,14 +15,7 @@ reflects this organization with a notation for module declarations.
|
||||||
A module declaration often prefaces the beginning of a section
|
A module declaration often prefaces the beginning of a section
|
||||||
or subsection:
|
or subsection:
|
||||||
|
|
||||||
@; TODO: change `defmodule` to support this
|
@(defmodule racket/list #:no-declare #:link-target? #f)
|
||||||
@(make-table "defmodule"
|
|
||||||
(list
|
|
||||||
(list
|
|
||||||
(make-flow
|
|
||||||
(list
|
|
||||||
(make-omitable-paragraph
|
|
||||||
(list (hspace 1) (racket (require racket/list)))))))))
|
|
||||||
|
|
||||||
The preceding @racket[require] statement in a section indicates that the bindings that are
|
The preceding @racket[require] statement in a section indicates that the bindings that are
|
||||||
documented in the section are available from the @racketmodname[racket/list] module.
|
documented in the section are available from the @racketmodname[racket/list] module.
|
||||||
|
@ -30,14 +23,7 @@ documented in the section are available from the @racketmodname[racket/list] mod
|
||||||
Instead of @racket[require], some module declarations are written with
|
Instead of @racket[require], some module declarations are written with
|
||||||
@hash-lang[]:
|
@hash-lang[]:
|
||||||
|
|
||||||
@; TODO: change `defmodule` to support this
|
@(defmodule racket/base #:lang #:no-declare #:link-target? #f)
|
||||||
@(make-table "defmodule"
|
|
||||||
(list
|
|
||||||
(list
|
|
||||||
(make-flow
|
|
||||||
(list
|
|
||||||
(make-omitable-paragraph
|
|
||||||
(list (hspace 1) @hash-lang[] (hspace 1) (racket racket/base))))))))
|
|
||||||
|
|
||||||
Using @hash-lang[] means that the module is normally used as a
|
Using @hash-lang[] means that the module is normally used as a
|
||||||
language, instead of imported with @racket[require]. Unless otherwise
|
language, instead of imported with @racket[require]. Unless otherwise
|
||||||
|
|
Loading…
Reference in New Issue
Block a user