use reprovide and include-sections
This commit is contained in:
parent
15925c4f82
commit
bf0934ff6c
8
lens/private/doc-util/include-sections.rkt
Normal file
8
lens/private/doc-util/include-sections.rkt
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#lang racket/base
|
||||||
|
|
||||||
|
(provide include-sections)
|
||||||
|
|
||||||
|
(require (only-in scribble/base include-section))
|
||||||
|
|
||||||
|
(define-syntax-rule (include-sections mod-path ...)
|
||||||
|
(begin (include-section mod-path) ...))
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
(require syntax/parse/define
|
(require syntax/parse/define
|
||||||
"deflenses.rkt"
|
"deflenses.rkt"
|
||||||
|
"include-sections.rkt"
|
||||||
"lenses-examples.rkt"
|
"lenses-examples.rkt"
|
||||||
(for-label lens
|
(for-label lens
|
||||||
unstable/lens
|
unstable/lens
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
(provide (all-from-out
|
(provide (all-from-out
|
||||||
syntax/parse/define
|
syntax/parse/define
|
||||||
"deflenses.rkt"
|
"deflenses.rkt"
|
||||||
|
"include-sections.rkt"
|
||||||
"lenses-examples.rkt")
|
"lenses-examples.rkt")
|
||||||
(for-label (all-from-out
|
(for-label (all-from-out
|
||||||
lens
|
lens
|
||||||
|
|
8
lens/private/util/reprovide.rkt
Normal file
8
lens/private/util/reprovide.rkt
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#lang racket/base
|
||||||
|
|
||||||
|
(provide reprovide)
|
||||||
|
|
||||||
|
(define-syntax-rule (reprovide mod-path ...)
|
||||||
|
(begin
|
||||||
|
(require mod-path ...)
|
||||||
|
(provide (all-from-out mod-path ...))))
|
|
@ -1,28 +1,15 @@
|
||||||
#lang sweet-exp racket/base
|
#lang sweet-exp racket/base
|
||||||
|
require lens/private/util/reprovide
|
||||||
|
reprovide
|
||||||
|
"arrow.rkt"
|
||||||
|
"isomorphism.rkt"
|
||||||
|
"mapper.rkt"
|
||||||
|
"match.rkt"
|
||||||
|
"set-filterer.rkt"
|
||||||
|
"string-split.rkt"
|
||||||
|
"struct-join.rkt"
|
||||||
|
"struct-nested.rkt"
|
||||||
|
"sublist.rkt"
|
||||||
|
"syntax.rkt"
|
||||||
|
"view-set.rkt"
|
||||||
|
|
||||||
require
|
|
||||||
"arrow.rkt"
|
|
||||||
"isomorphism.rkt"
|
|
||||||
"mapper.rkt"
|
|
||||||
"match.rkt"
|
|
||||||
"set-filterer.rkt"
|
|
||||||
"string-split.rkt"
|
|
||||||
"struct-join.rkt"
|
|
||||||
"struct-nested.rkt"
|
|
||||||
"sublist.rkt"
|
|
||||||
"syntax.rkt"
|
|
||||||
"view-set.rkt"
|
|
||||||
|
|
||||||
provide
|
|
||||||
all-from-out
|
|
||||||
"arrow.rkt"
|
|
||||||
"isomorphism.rkt"
|
|
||||||
"mapper.rkt"
|
|
||||||
"match.rkt"
|
|
||||||
"set-filterer.rkt"
|
|
||||||
"string-split.rkt"
|
|
||||||
"struct-join.rkt"
|
|
||||||
"struct-nested.rkt"
|
|
||||||
"sublist.rkt"
|
|
||||||
"syntax.rkt"
|
|
||||||
"view-set.rkt"
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#lang scribble/manual
|
#lang scribble/manual
|
||||||
|
|
||||||
|
@(require lens/private/doc-util/main)
|
||||||
|
|
||||||
@title{Unstable Lenses}
|
@title{Unstable Lenses}
|
||||||
|
|
||||||
@defmodule[unstable/lens]
|
@defmodule[unstable/lens]
|
||||||
|
@ -9,14 +11,17 @@ This library provides additional features for the
|
||||||
may change in future releases. Do not depend on
|
may change in future releases. Do not depend on
|
||||||
this library being backwards-compatible.
|
this library being backwards-compatible.
|
||||||
|
|
||||||
@include-section["arrow.scrbl"]
|
@(include-sections
|
||||||
@include-section["isomorphism.scrbl"]
|
"arrow.scrbl"
|
||||||
@include-section["mapper.scrbl"]
|
"isomorphism.scrbl"
|
||||||
@include-section["match.scrbl"]
|
"mapper.scrbl"
|
||||||
@include-section["set-filterer.scrbl"]
|
"match.scrbl"
|
||||||
@include-section["string-split.scrbl"]
|
"set-filterer.scrbl"
|
||||||
@include-section["struct-join.scrbl"]
|
"string-split.scrbl"
|
||||||
@include-section["struct-nested.scrbl"]
|
"struct-join.scrbl"
|
||||||
@include-section["sublist.scrbl"]
|
"struct-nested.scrbl"
|
||||||
@include-section["syntax.scrbl"]
|
"sublist.scrbl"
|
||||||
@include-section["view-set.scrbl"]
|
"syntax.scrbl"
|
||||||
|
"view-set.scrbl"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user