We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ace28f commit 9804125Copy full SHA for 9804125
CHANGELOG.md
@@ -11,6 +11,7 @@ New features:
11
Bugfixes:
12
13
Other improvements:
14
+ - Improve documentation for `united` (#134 by @neppord)
15
16
## [v7.0.1](https://github.com/purescript-contrib/purescript-profunctor-lenses/releases/tag/v7.0.1) - 2021-05-06
17
src/Data/Lens/Lens/Unit.purs
@@ -5,5 +5,11 @@ import Prelude
5
import Data.Lens.Lens (Lens', lens)
6
7
-- | There is a `Unit` in everything.
8
+-- | ```purescript
9
+-- | > view united [1,2,3]
10
+-- | unit
+-- | > over united (\a -> a :: Unit) [1,2,3]
+-- | [1 2 3]
+-- | ```
united :: forall a. Lens' a Unit
united = lens (const unit) const
0 commit comments