[commit: ghc] ghc-8.0: GHC.Generics: Fix documentation (20b0416)

git at git.haskell.org git at git.haskell.org
Thu Jan 14 12:17:55 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/20b0416164411d24e81e654c52cd82f63f5522f9/ghc

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

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

    GHC.Generics: Fix documentation
    
    Fixes #11417.
    
    (cherry picked from commit 91dcc655932b7977c9901d3504bc3d8f0ca8cb6e)


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

20b0416164411d24e81e654c52cd82f63f5522f9
 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