[Git][ghc/ghc][master] Use monospace font for "Either a b" in fmap docs

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Sun Oct 20 20:36:15 UTC 2024



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


Commits:
d6bfea76 by Matthew James Kraai at 2024-10-20T16:35:29-04:00
Use monospace font for "Either a b" in fmap docs

The documentation for fmap shows "`Either a b`" in the default font
instead of showing "Either a b" in a monospace font.

- - - - -


1 changed file:

- libraries/ghc-internal/src/GHC/Internal/Base.hs


Changes:

=====================================
libraries/ghc-internal/src/GHC/Internal/Base.hs
=====================================
@@ -972,7 +972,7 @@ class Functor f where
     -- | 'fmap' is used to apply a function of type @(a -> b)@ to a value of type @f a@,
     -- where f is a functor, to produce a value of type @f b at .
     -- Note that for any type constructor with more than one parameter (e.g., 'Either'),
-    -- only the last type parameter can be modified with `fmap` (e.g., `b` in `Either a b`).
+    -- only the last type parameter can be modified with `fmap` (e.g., `b` in @Either a b@).
     --
     -- Some type constructors with two parameters or more have a @'Data.Bifunctor'@ instance that allows
     -- both the last and the penultimate parameters to be mapped over.



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d6bfea762829af3ec72b7be3ada3f49b2de01784
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/20241020/c64e7dda/attachment.html>


More information about the ghc-commits mailing list