aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Convert.hs
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2018-06-19 19:13:17 -0400
committerBen Gamari <ben@smart-cactus.org>2018-06-19 23:17:31 -0400
commit679f61210b18acd6299687fca66c81196ca358a5 (patch)
tree349e426ffc45c0a92005b356369274fb76f3faf5 /haddock-api/src/Haddock/Convert.hs
parent5e3cf5d8868323079ff5494a8225b0467404a5d1 (diff)
Remove HsEqTy and XEqTy
Diffstat (limited to 'haddock-api/src/Haddock/Convert.hs')
-rw-r--r--haddock-api/src/Haddock/Convert.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/haddock-api/src/Haddock/Convert.hs b/haddock-api/src/Haddock/Convert.hs
index 511decae..bf6fbab0 100644
--- a/haddock-api/src/Haddock/Convert.hs
+++ b/haddock-api/src/Haddock/Convert.hs
@@ -37,7 +37,7 @@ import Type
import TyCoRep
import TysPrim ( alphaTyVars )
import TysWiredIn ( listTyConName, liftedTypeKindTyConName, unitTy )
-import PrelNames ( hasKey, eqTyConKey, ipClassKey
+import PrelNames ( hasKey, eqTyConKey, eqTyConName, ipClassKey
, tYPETyConKey, liftedRepDataConKey )
import Unique ( getUnique )
import Util ( chkAppend, compareLength, dropList, filterByList, filterOut
@@ -468,7 +468,10 @@ synifyType _ (TyConApp tc tys)
-- and equalities
| tc `hasKey` eqTyConKey
, [ty1, ty2] <- tys
- = noLoc $ HsEqTy noExt (synifyType WithinType ty1) (synifyType WithinType ty2)
+ = noLoc $ HsOpTy noExt
+ (synifyType WithinType ty1)
+ (noLoc eqTyConName)
+ (synifyType WithinType ty2)
-- and infix type operators
| isSymOcc (nameOccName (getName tc))
, ty1:ty2:tys_rest <- vis_tys