summaryrefslogtreecommitdiff
path: root/compiler/utils/GraphPpr.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2015-01-05 16:57:01 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2015-01-06 14:24:59 +0000
commit39337a6d97c853a88fa61d6b12a04eb8c2e5984f (patch)
tree0dd7051080041ee928429832122b9dd14add302c /compiler/utils/GraphPpr.hs
parent32973bf3c2f6fe00e01b44a63ac1904080466938 (diff)
downloadhaskell-39337a6d97c853a88fa61d6b12a04eb8c2e5984f.tar.gz
Remove redundant constraints in the compiler itself, found by -fwarn-redundant-constraints
Diffstat (limited to 'compiler/utils/GraphPpr.hs')
-rw-r--r--compiler/utils/GraphPpr.hs9
1 files changed, 4 insertions, 5 deletions
diff --git a/compiler/utils/GraphPpr.hs b/compiler/utils/GraphPpr.hs
index df85fddc5b..6f7e9d5bb2 100644
--- a/compiler/utils/GraphPpr.hs
+++ b/compiler/utils/GraphPpr.hs
@@ -20,7 +20,7 @@ import Data.Maybe
-- | Pretty print a graph in a somewhat human readable format.
dumpGraph
- :: (Outputable k, Outputable cls, Outputable color)
+ :: (Outputable k, Outputable color)
=> Graph k cls color -> SDoc
dumpGraph graph
@@ -28,7 +28,7 @@ dumpGraph graph
$$ (vcat $ map dumpNode $ eltsUFM $ graphMap graph)
dumpNode
- :: (Outputable k, Outputable cls, Outputable color)
+ :: (Outputable k, Outputable color)
=> Node k cls color -> SDoc
dumpNode node
@@ -74,8 +74,7 @@ dotGraph colorMap triv graph
, space ])
-dotNode :: ( Uniquable k
- , Outputable k, Outputable cls, Outputable color)
+dotNode :: ( Outputable k, Outputable cls, Outputable color)
=> (color -> SDoc)
-> Triv k cls color
-> Node k cls color -> SDoc
@@ -132,7 +131,7 @@ dotNode colorMap triv node
dotNodeEdges
:: ( Uniquable k
- , Outputable k, Outputable cls, Outputable color)
+ , Outputable k)
=> UniqSet k
-> Node k cls color
-> (UniqSet k, Maybe SDoc)