aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Convert.hs
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2014-09-05 18:13:24 -0500
committerAustin Seipp <aseipp@pobox.com>2014-09-05 18:13:24 -0500
commitaacaa91951b16f22e3ad54412974b81c32230a8c (patch)
treed00b833e52a6ca0e66fbdfdc131695b9cea90ecc /src/Haddock/Convert.hs
parenteee52f697233f99e23c1d8183511229fb93e3f3e (diff)
Follow changes to TypeAnnot in GHC HEAD
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'src/Haddock/Convert.hs')
-rw-r--r--src/Haddock/Convert.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Haddock/Convert.hs b/src/Haddock/Convert.hs
index dfb0f14f..48306392 100644
--- a/src/Haddock/Convert.hs
+++ b/src/Haddock/Convert.hs
@@ -81,7 +81,7 @@ tyThingToLHsDecl t = noLoc $ case t of
, tcdATs = atFamDecls
, tcdATDefs = [] --ignore associated type defaults
, tcdDocs = [] --we don't have any docs at this point
- , tcdFVs = placeHolderNames }
+ , tcdFVs = placeHolderNamesTc }
| otherwise
-> TyClD (synifyTyCon Nothing tc)
@@ -118,7 +118,7 @@ synifyAxiom ax@(CoAxiom { co_ax_tc = tc })
| isOpenSynFamilyTyCon tc
, Just branch <- coAxiomSingleBranch_maybe ax
= InstD (TyFamInstD (TyFamInstDecl { tfid_eqn = noLoc $ synifyAxBranch tc branch
- , tfid_fvs = placeHolderNames }))
+ , tfid_fvs = placeHolderNamesTc }))
| Just ax' <- isClosedSynFamilyTyCon_maybe tc
, getUnique ax' == getUnique ax -- without the getUniques, type error
@@ -148,7 +148,7 @@ synifyTyCon coax tc
-- we have their kind accurately:
, dd_cons = [] -- No constructors
, dd_derivs = Nothing }
- , tcdFVs = placeHolderNames }
+ , tcdFVs = placeHolderNamesTc }
| isSynFamilyTyCon tc
= case synTyConRhs_maybe tc of
@@ -177,7 +177,7 @@ synifyTyCon coax tc
SynDecl { tcdLName = synifyName tc
, tcdTyVars = synifyTyVars (tyConTyVars tc)
, tcdRhs = synifyType WithinType ty
- , tcdFVs = placeHolderNames }
+ , tcdFVs = placeHolderNamesTc }
_ -> error "synifyTyCon: impossible synTyCon"
| otherwise =
-- (closed) newtype and data
@@ -217,7 +217,7 @@ synifyTyCon coax tc
, dd_cons = cons
, dd_derivs = alg_deriv }
in DataDecl { tcdLName = name, tcdTyVars = tyvars, tcdDataDefn = defn
- , tcdFVs = placeHolderNames }
+ , tcdFVs = placeHolderNamesTc }
-- User beware: it is your responsibility to pass True (use_gadt_syntax)
-- for any constructor that would be misrepresented by omitting its