Rename remaining lenses documentation references

This commit is contained in:
Jack Firth 2015-07-06 21:04:06 -07:00
parent 567ab493a5
commit d372a3e218
4 changed files with 12 additions and 12 deletions

View File

@ -2,7 +2,7 @@
@(require scribble/eval @(require scribble/eval
"lenses-examples.rkt" "lenses-examples.rkt"
(for-label lenses (for-label lens
racket/base racket/base
racket/contract)) racket/contract))
@ -10,15 +10,15 @@
@title{Applicable lenses} @title{Applicable lenses}
@defmodule[lenses/applicable] @defmodule[lens/applicable]
This module provides the same functions as @racketmodname[lenses], This module provides the same functions as @racketmodname[lens],
but enables the use of @italic{applicable lenses}. Applicable lenses but enables the use of @italic{applicable lenses}. Applicable lenses
may be used directly as getter functions, removing the need to use may be used directly as getter functions, removing the need to use
@racket[lens-view]. @racket[lens-view].
@lenses-applicable-examples[ @lenses-applicable-examples[
(require lenses/applicable) (require lens/applicable)
(first-lens '(a b c)) (first-lens '(a b c))
(map first-lens '((1 2 3) (a b c) (100 200 300))) (map first-lens '((1 2 3) (a b c) (100 200 300)))
] ]
@ -26,6 +26,6 @@ may be used directly as getter functions, removing the need to use
Attempting to use non-applicable lenses as functions is an error. Attempting to use non-applicable lenses as functions is an error.
@lenses-examples[ @lenses-examples[
(require lenses) (require lens)
(first-lens '(a b c)) (first-lens '(a b c))
] ]

View File

@ -2,7 +2,7 @@
@title{Lenses} @title{Lenses}
@defmodule[lenses] @defmodule[lens]
This library includes functions and forms for working with @italic{lenses}. This library includes functions and forms for working with @italic{lenses}.
A lens is a value that operates on some small piece of a larger A lens is a value that operates on some small piece of a larger
@ -11,7 +11,7 @@ setters in object-oriented languages.
@author[@author+email["Jack Firth" "jackhfirth@gmail.com"]] @author[@author+email["Jack Firth" "jackhfirth@gmail.com"]]
source code: @url["https://github.com/jackfirth/lenses"] source code: @url["https://github.com/jackfirth/lens"]
@include-section["core/main.scrbl"] @include-section["core/main.scrbl"]
@include-section["list/main.scrbl"] @include-section["list/main.scrbl"]

View File

@ -2,21 +2,21 @@
@(require scribble/eval @(require scribble/eval
"lenses-examples.rkt" "lenses-examples.rkt"
(for-label lenses (for-label lens
lenses/struct-lens lens/struct-lens
racket/base racket/base
racket/contract)) racket/contract))
@title{Struct lenses} @title{Struct lenses}
@defmodule[lenses/struct-lens] @defmodule[lens/struct-lens]
@defform[(struct-lens struct-id field-id)]{ @defform[(struct-lens struct-id field-id)]{
Returns a lens for viewing the @racket[field-id] field of Returns a lens for viewing the @racket[field-id] field of
a @racket[struct-id] instance. a @racket[struct-id] instance.
@lenses-examples[ @lenses-examples[
(require lenses/struct-lens) (require lens/struct-lens)
(struct foo (a b c) #:transparent) (struct foo (a b c) #:transparent)
(lens-view (struct-lens foo a) (foo 1 2 3)) (lens-view (struct-lens foo a) (foo 1 2 3))
(lens-set (struct-lens foo a) (foo 1 2 3) 100) (lens-set (struct-lens foo a) (foo 1 2 3) 100)

View File

@ -2,7 +2,7 @@
@(require scribble/eval @(require scribble/eval
"lenses-examples.rkt" "lenses-examples.rkt"
(for-label lenses (for-label lens
racket/base racket/base
racket/contract)) racket/contract))