Skip to content

Commit 20b1cd6

Browse files
committed
docs
1 parent 5de1004 commit 20b1cd6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Bend draws from Haskell profunctor optics, Scala's `Either`, the `adapt` primitive from [denful/nfx](https://github.com/denful/nfx) and parser-combinators.
1515

1616
The core idea is [Parse, Don't Validate](https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/): a validator for non-empty lists that returns `true` is discarding the proof it just computed; instead if the function returns `left empty` or `right { head; tail; }`, the data structure *is* the proof.
17-
Every lens either refines its input (`right`) or returns the original unchanged (`left`).
17+
Every lens either refines data as proof on `right` or returns invalid data on `left`.
1818

1919

2020
Bend’s combinator names deliberately match parser-combinator vocabulary:

docs/src/content/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { Card, CardGrid, Aside, LinkButton } from '@astrojs/starlight/components
3232
Bend draws from Haskell profunctor optics, Scala's `Either`, the `adapt` primitive from [denful/nfx](https://github.com/denful/nfx) and parser-combinators.
3333

3434
The core idea is [Parse, Don't Validate](https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/): a validator for non-empty lists that returns `true` is discarding the proof it just computed; instead if the function returns `left empty` or `right { head; tail; }`, the data structure *is* the proof.
35-
Every lens either refines its input (`right`) or returns the original unchanged (`left`).
35+
Every lens either refines data as proof on `right` or returns invalid data on `left`.
3636

3737
Bend’s combinator names deliberately match parser-combinator vocabulary:
3838
This is not cosmetic. The names signal that [Bend is a parser combinator library](/explanation/validation-is-parsing), one that operates on Nix data structures instead of character streams, and that happens to also support bidirectional writes.

0 commit comments

Comments
 (0)