[commit: haddock] ghc-8.0-facebook: Disable NFData instances for GHC types when GHC >= 8.2 (57b4cee)
git at git.haskell.org
git at git.haskell.org
Mon Nov 20 21:04:02 UTC 2017
- Previous message: [commit: haddock] alexbiehl-patch-1, ghc-head, ghc-head1, haddock-quick, headdock-library-1.4.5, ie_avails, master, pr-filter-maps, pr/cabal-desc, travis, v2.18, wip-located-module-as, wip/T12942, wip/T13163, wip/T3384, wip/embelleshed-rdr, wip/new-tree-one-param, wip/rae, wip/remove-frames, wip/remove-frames1, wip/revert-ttg-2017-11-20, wip/ttg-2017-10-13, wip/ttg-2017-10-31, wip/ttg-2017-11-06, wip/ttg2-2017-11-10, wip/ttg3-2017-11-12, wip/ttg4-constraints-2017-11-13: Disable NFData instances for GHC types when GHC >= 8.2 (a3309e7)
- Next message: [commit: haddock] ghc-8.0-facebook: Disable NFData instances for GHC types when GHC >= 8.2 (57b4cee)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Repository : ssh://git@git.haskell.org/haddock
On branch : ghc-8.0-facebook
Link : http://git.haskell.org/haddock.git/commitdiff/57b4cee1b3e74fe0342d8a98f8760db7d3847f1f
>---------------------------------------------------------------
commit 57b4cee1b3e74fe0342d8a98f8760db7d3847f1f
Author: Simon Marlow <smarlow at fb.com>
Date: Fri Jul 22 02:55:04 2016 -0700
Disable NFData instances for GHC types when GHC >= 8.2
>---------------------------------------------------------------
57b4cee1b3e74fe0342d8a98f8760db7d3847f1f
haddock-api/src/Haddock/Types.hs | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/haddock-api/src/Haddock/Types.hs b/haddock-api/src/Haddock/Types.hs
index eacf447..f64b180 100644
--- a/haddock-api/src/Haddock/Types.hs
+++ b/haddock-api/src/Haddock/Types.hs
@@ -1,4 +1,7 @@
-{-# LANGUAGE DeriveDataTypeable, DeriveFunctor, DeriveFoldable, DeriveTraversable, StandaloneDeriving, TypeFamilies, RecordWildCards #-}
+{-# LANGUAGE CPP, DeriveDataTypeable, DeriveFunctor, DeriveFoldable, DeriveTraversable, StandaloneDeriving, TypeFamilies, RecordWildCards #-}
+{-# LANGUAGE FlexibleContexts #-}
+{-# LANGUAGE UndecidableInstances #-} -- Note [Pass sensitive types]
+ -- in module GHC.PlaceHolder
{-# OPTIONS_GHC -fno-warn-orphans #-}
-----------------------------------------------------------------------------
-- |
@@ -447,10 +450,13 @@ instance (NFData a, NFData mod)
DocExamples a -> a `deepseq` ()
DocHeader a -> a `deepseq` ()
-
+#if 0
+-- These were added to GHC itself in 8.2.1
+-- and they are cherry-picked for ghc-8.0-facebook branch
instance NFData Name where rnf x = seq x ()
instance NFData OccName where rnf x = seq x ()
instance NFData ModuleName where rnf x = seq x ()
+#endif
instance NFData id => NFData (Header id) where
rnf (Header a b) = a `deepseq` b `deepseq` ()
- Previous message: [commit: haddock] alexbiehl-patch-1, ghc-head, ghc-head1, haddock-quick, headdock-library-1.4.5, ie_avails, master, pr-filter-maps, pr/cabal-desc, travis, v2.18, wip-located-module-as, wip/T12942, wip/T13163, wip/T3384, wip/embelleshed-rdr, wip/new-tree-one-param, wip/rae, wip/remove-frames, wip/remove-frames1, wip/revert-ttg-2017-11-20, wip/ttg-2017-10-13, wip/ttg-2017-10-31, wip/ttg-2017-11-06, wip/ttg2-2017-11-10, wip/ttg3-2017-11-12, wip/ttg4-constraints-2017-11-13: Disable NFData instances for GHC types when GHC >= 8.2 (a3309e7)
- Next message: [commit: haddock] ghc-8.0-facebook: Disable NFData instances for GHC types when GHC >= 8.2 (57b4cee)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the ghc-commits
mailing list