summaryrefslogtreecommitdiff
path: root/compiler/utils
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2017-08-09 15:23:28 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2017-08-09 15:23:28 +0000
commit360cf4c8bc92830d0e6d92cc35d50465a683855d (patch)
tree477ef92fe24bd17499c78d04de22ea2b062d4022 /compiler/utils
parentffb8f654d22bd3c2ef5ad497665a0a73938bee88 (diff)
downloadhaskell-360cf4c8bc92830d0e6d92cc35d50465a683855d.tar.gz
Add reference to ppr_ty for type variables
Diffstat (limited to 'compiler/utils')
-rw-r--r--compiler/utils/OutputableAnnotation.hs10
-rw-r--r--compiler/utils/OutputableAnnotation.hs-boot6
2 files changed, 11 insertions, 5 deletions
diff --git a/compiler/utils/OutputableAnnotation.hs b/compiler/utils/OutputableAnnotation.hs
index 12a7bba9e6..fe6a39e1fa 100644
--- a/compiler/utils/OutputableAnnotation.hs
+++ b/compiler/utils/OutputableAnnotation.hs
@@ -6,16 +6,16 @@ import Outputable ( OutputableBndr(..))
import Name (NamedThing)
data PExpr where
- PCoreExpr :: (OutputableBndr a, NamedThing a) => Expr a -> PExpr
- PBind :: (OutputableBndr a, NamedThing a) => Bind a -> PExpr
- PVar :: (OutputableBndr a, NamedThing a) => BindType -> a -> PExpr
+ PCoreExpr :: NamedThing a => Expr a -> PExpr
+ PBind :: NamedThing a => Bind a -> PExpr
+ PVar :: NamedThing a => BindType -> a -> PExpr
data BindType = Binder | Reference
-varBinder :: (OutputableBndr a, NamedThing a) => a -> PExpr
+varBinder :: NamedThing a => a -> PExpr
varBinder a = PVar Binder a
-varReference :: (OutputableBndr a, NamedThing a) => a -> PExpr
+varReference :: NamedThing a => a -> PExpr
varReference a = PVar Reference a
diff --git a/compiler/utils/OutputableAnnotation.hs-boot b/compiler/utils/OutputableAnnotation.hs-boot
index d71f632aca..d7120df46b 100644
--- a/compiler/utils/OutputableAnnotation.hs-boot
+++ b/compiler/utils/OutputableAnnotation.hs-boot
@@ -1,3 +1,9 @@
module OutputableAnnotation where
+import {-# SOURCE #-} Name (NamedThing)
+
data PExpr
+
+data BindType
+
+varReference :: NamedThing a => a -> PExpr