Skip to content

Commit 9804125

Browse files
authored
Document united (#134)
1 parent 5ace28f commit 9804125

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ New features:
1111
Bugfixes:
1212

1313
Other improvements:
14+
- Improve documentation for `united` (#134 by @neppord)
1415

1516
## [v7.0.1](https://github.com/purescript-contrib/purescript-profunctor-lenses/releases/tag/v7.0.1) - 2021-05-06
1617

src/Data/Lens/Lens/Unit.purs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@ import Prelude
55
import Data.Lens.Lens (Lens', lens)
66

77
-- | There is a `Unit` in everything.
8+
-- | ```purescript
9+
-- | > view united [1,2,3]
10+
-- | unit
11+
-- | > over united (\a -> a :: Unit) [1,2,3]
12+
-- | [1 2 3]
13+
-- | ```
814
united :: forall a. Lens' a Unit
915
united = lens (const unit) const

0 commit comments

Comments
 (0)