[commit: ghc] master: Fix a couple of user-manual typos (037c249)
git at git.haskell.org
git at git.haskell.org
Thu Apr 13 08:27:12 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/037c2495d83bb7da7f15c8e076df2c575500d0fd/ghc
>---------------------------------------------------------------
commit 037c2495d83bb7da7f15c8e076df2c575500d0fd
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Tue Apr 11 15:24:42 2017 +0100
Fix a couple of user-manual typos
>---------------------------------------------------------------
037c2495d83bb7da7f15c8e076df2c575500d0fd
docs/users_guide/glasgow_exts.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index 9d1ca19..40e3f82 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -5241,7 +5241,7 @@ you can specify a default method that uses that generic implementation: ::
We reuse the keyword ``default`` to signal that a signature applies to
the default method only; when defining instances of the ``Enum`` class,
the original type ``[a]`` of ``enum`` still applies. When giving an
-empty instance, however, the default implementation ``map to genum`` is
+empty instance, however, the default implementation ``(map to genum)`` is
filled-in, and type-checked with the type
``(Generic a, GEnum (Rep a)) => [a]``.
@@ -13970,7 +13970,7 @@ exposed to the user: ::
class Serialize a where
put :: a -> [Bin]
- default put :: (Generic a, GSerialize (Rep a)) => a -> [Bit]
+ default put :: (Generic a, GSerialize (Rep a)) => a -> [Bin]
put = gput . from
Here we use a `default signature <#class-default-signatures>`__ to
More information about the ghc-commits
mailing list