Skip to content

Commit 5bc4e00

Browse files
danidiazDaniel Diaz
andauthored
Escaped lambda slashes inside code blocks. (#103)
Co-authored-by: Daniel Diaz <diaz.carrete@facebook.com>
1 parent eb3073e commit 5bc4e00

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Streaming/Prelude.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2655,7 +2655,7 @@ two
26552655
@copy@ can be considered a special case of 'expand':
26562656
26572657
@
2658-
copy = 'expand' $ \p (a :> as) -> a :> p (a :> as)
2658+
copy = 'expand' $ \\p (a :> as) -> a :> p (a :> as)
26592659
@
26602660
26612661
If 'Of' were an instance of 'Control.Comonad.Comonad', then one could write
@@ -2731,8 +2731,8 @@ S.toList $ S.unzip $ S.each xs
27312731
'unzip' can be considered a special case of either 'unzips' or 'expand':
27322732
27332733
@
2734-
unzip = 'unzips' . 'maps' (\((a,b) :> x) -> Compose (a :> b :> x))
2735-
unzip = 'expand' $ \p ((a,b) :> abs) -> b :> p (a :> abs)
2734+
unzip = 'unzips' . 'maps' (\\((a,b) :> x) -> Compose (a :> b :> x))
2735+
unzip = 'expand' $ \\p ((a,b) :> abs) -> b :> p (a :> abs)
27362736
@
27372737
-}
27382738
unzip :: Monad m => Stream (Of (a,b)) m r -> Stream (Of a) (Stream (Of b) m) r

0 commit comments

Comments
 (0)