summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2015-11-17 09:50:05 +0100
committerBen Gamari <ben@smart-cactus.org>2015-11-17 12:25:00 +0100
commit615ba5ff4d78ef69898e8f84c5831cdb1bad3b21 (patch)
tree64479006ac76d31ff349a226f43cb3186703f88f /compiler
parent4e74ef96960187bba2848a73f5899c8807bb2a39 (diff)
downloadhaskell-615ba5ff4d78ef69898e8f84c5831cdb1bad3b21.tar.gz
Remove orphan Functor instance of Data.Graph.SCC
Reviewers: bgamari, austin Reviewed By: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1481
Diffstat (limited to 'compiler')
-rw-r--r--compiler/utils/Digraph.hs11
1 files changed, 1 insertions, 10 deletions
diff --git a/compiler/utils/Digraph.hs b/compiler/utils/Digraph.hs
index c6e63fb753..2c90c1e41e 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