[commit: haddock] T6018-injective-type-families, adamse-D1033, ghc-head, master, wip/10268, wip/10313, wip/D538, wip/D538-1, wip/D538-2, wip/D538-3, wip/D538-4, wip/D538-5, wip/D538-6, wip/D548-master, wip/D548-master-2, wip/T10483, wip/T9840, wip/api-annot-tweaks-7.10, wip/api-annots-ghc-7.10-3, wip/orf-reboot: Make compatible with `deepseq-1.4.0.0` (d5950c8)

git at git.haskell.org git at git.haskell.org
Wed Jul 8 08:34:42 UTC 2015


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

On branches: T6018-injective-type-families,adamse-D1033,ghc-head,master,wip/10268,wip/10313,wip/D538,wip/D538-1,wip/D538-2,wip/D538-3,wip/D538-4,wip/D538-5,wip/D538-6,wip/D548-master,wip/D548-master-2,wip/T10483,wip/T9840,wip/api-annot-tweaks-7.10,wip/api-annots-ghc-7.10-3,wip/orf-reboot
Link       : http://git.haskell.org/haddock.git/commitdiff/d5950c8a95dc46fe2702d04f724145c73355043e

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

commit d5950c8a95dc46fe2702d04f724145c73355043e
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sat Nov 15 11:55:43 2014 +0100

    Make compatible with `deepseq-1.4.0.0`
    
    ...by not relying on the default method implementation of `rnf`


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

d5950c8a95dc46fe2702d04f724145c73355043e
 haddock-api/src/Haddock/Types.hs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/haddock-api/src/Haddock/Types.hs b/haddock-api/src/Haddock/Types.hs
index 7113997..e93294a 100644
--- a/haddock-api/src/Haddock/Types.hs
+++ b/haddock-api/src/Haddock/Types.hs
@@ -343,9 +343,9 @@ instance (NFData a, NFData mod)
     DocHeader a               -> a `deepseq` ()
 
 
-instance NFData Name
-instance NFData OccName
-instance NFData ModuleName
+instance NFData Name where rnf x = seq x ()
+instance NFData OccName where rnf x = seq x ()
+instance NFData ModuleName where rnf x = seq x ()
 
 instance NFData id => NFData (Header id) where
   rnf (Header a b) = a `deepseq` b `deepseq` ()



More information about the ghc-commits mailing list