From 936229572252c8c8545c89fcefd267e89005b8b0 Mon Sep 17 00:00:00 2001 From: Alp Mestanogullari Date: Thu, 15 Nov 2018 22:40:09 +0100 Subject: Follow GHC HEAD's HsTypes.Promoted -> BasicTypes.PromotionFlag change It got introduced in ghc/ghc@ae2c9b40f5b6bf272251d1f4107c60003f541b62. --- haddock-api/src/Haddock/Convert.hs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'haddock-api/src/Haddock/Convert.hs') diff --git a/haddock-api/src/Haddock/Convert.hs b/haddock-api/src/Haddock/Convert.hs index 823e288e..5ddc9eef 100644 --- a/haddock-api/src/Haddock/Convert.hs +++ b/haddock-api/src/Haddock/Convert.hs @@ -17,7 +17,8 @@ module Haddock.Convert where -- instance heads, which aren't TyThings, so just export everything. import Bag ( emptyBag ) -import BasicTypes ( TupleSort(..), SourceText(..), LexicalFixity(..) ) +import BasicTypes ( TupleSort(..), SourceText(..), LexicalFixity(..) + , PromotionFlag(..) ) import Class import CoAxiom import ConLike @@ -468,13 +469,13 @@ synifyType _ (TyConApp tc tys) | getName tc == listTyConName, [ty] <- vis_tys = noLoc $ HsListTy noExt (synifyType WithinType ty) | tc == promotedNilDataCon, [] <- vis_tys - = noLoc $ HsExplicitListTy noExt Promoted [] + = noLoc $ HsExplicitListTy noExt IsPromoted [] | tc == promotedConsDataCon , [ty1, ty2] <- vis_tys = let hTy = synifyType WithinType ty1 in case synifyType WithinType ty2 of - tTy | L _ (HsExplicitListTy _ Promoted tTy') <- stripKindSig tTy - -> noLoc $ HsExplicitListTy noExt Promoted (hTy : tTy') + tTy | L _ (HsExplicitListTy _ IsPromoted tTy') <- stripKindSig tTy + -> noLoc $ HsExplicitListTy noExt IsPromoted (hTy : tTy') | otherwise -> noLoc $ HsOpTy noExt hTy (noLoc $ getName tc) tTy -- ditto for implicit parameter tycons -- cgit v1.2.3