[Git][ghc/ghc][master] Fix Control.Arrow (***) diagram (fixes #25698)

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Thu Jan 30 02:42:32 UTC 2025



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
704eeb02 by Roman S at 2025-01-29T21:42:05-05:00
Fix Control.Arrow (***) diagram (fixes #25698)
- - - - -


1 changed file:

- libraries/ghc-internal/src/GHC/Internal/Control/Arrow.hs


Changes:

=====================================
libraries/ghc-internal/src/GHC/Internal/Control/Arrow.hs
=====================================
@@ -131,10 +131,10 @@ class Category a => Arrow a where
     --   The default definition may be overridden with a more efficient
     --   version if desired.
     --
-    -- >   b ╭─────╮ b'
+    -- >   b ╭─────╮ c
     -- > >───┼─ f ─┼───>
     -- > >───┼─ g ─┼───>
-    -- >   c ╰─────╯ c'
+    -- >   b'╰─────╯ c'
     (***) :: a b c -> a b' c' -> a (b,b') (c,c')
     f *** g = first f >>> arr swap >>> first g >>> arr swap
       where swap ~(x,y) = (y,x)



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/704eeb02b072543bcb795113a50adf201fe709ab

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/704eeb02b072543bcb795113a50adf201fe709ab
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250129/faa50087/attachment.html>


More information about the ghc-commits mailing list