[commit: ghc] master: GHC.Generics: Fix documentation (91dcc65)

git at git.haskell.org git at git.haskell.org
Thu Jan 14 11:43:58 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/91dcc655932b7977c9901d3504bc3d8f0ca8cb6e/ghc

>---------------------------------------------------------------

commit 91dcc655932b7977c9901d3504bc3d8f0ca8cb6e
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed Jan 13 21:36:51 2016 +0100

    GHC.Generics: Fix documentation
    
    Fixes #11417.


>---------------------------------------------------------------

91dcc655932b7977c9901d3504bc3d8f0ca8cb6e
 libraries/base/GHC/Generics.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/base/GHC/Generics.hs b/libraries/base/GHC/Generics.hs
index 16e61f9..3ac4d5c 100644
--- a/libraries/base/GHC/Generics.hs
+++ b/libraries/base/GHC/Generics.hs
@@ -386,7 +386,7 @@ module GHC.Generics  (
 -- @
 -- class Encode a where
 --   encode :: a -> [Bool]
---   default encode :: ('Generic' a) => a -> [Bool]
+--   default encode :: (Generic a, Encode' (Rep a)) => a -> [Bool]
 --   encode x = encode' ('from' x)
 -- @
 --



More information about the ghc-commits mailing list