[commit: ghc] master: Remove orphan Functor instance of Data.Graph.SCC (615ba5f)
git at git.haskell.org
git at git.haskell.org
Tue Nov 17 12:57:58 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/615ba5ff4d78ef69898e8f84c5831cdb1bad3b21/ghc
>---------------------------------------------------------------
commit 615ba5ff4d78ef69898e8f84c5831cdb1bad3b21
Author: Ömer Sinan Ağacan <omeragacan at gmail.com>
Date: Tue Nov 17 09:50:05 2015 +0100
Remove orphan Functor instance of Data.Graph.SCC
Reviewers: bgamari, austin
Reviewed By: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1481
>---------------------------------------------------------------
615ba5ff4d78ef69898e8f84c5831cdb1bad3b21
compiler/utils/Digraph.hs | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/compiler/utils/Digraph.hs b/compiler/utils/Digraph.hs
index c6e63fb..2c90c1e 100644
--- a/compiler/utils/Digraph.hs
+++ b/compiler/utils/Digraph.hs
@@ -1,8 +1,7 @@
-- (c) The University of Glasgow 2006
{-# LANGUAGE CPP, ScopedTypeVariables #-}
--- For Functor SCC. ToDo: Remove me when 7.10 is released
-{-# OPTIONS_GHC -fno-warn-orphans #-}
+
module Digraph(
Graph, graphFromEdgedVertices,
@@ -329,14 +328,6 @@ graphEmpty g = lo > hi
type IntGraph = G.Graph
--- Functor instance was added in 7.8, in containers 0.5.3.2 release
--- ToDo: Drop me when 7.10 is released.
-#if __GLASGOW_HASKELL__ < 708
-instance Functor SCC where
- fmap f (AcyclicSCC v) = AcyclicSCC (f v)
- fmap f (CyclicSCC vs) = CyclicSCC (fmap f vs)
-#endif
-
{-
------------------------------------------------------------
-- Depth first search numbering
More information about the ghc-commits
mailing list