@@ -84,9 +84,10 @@ p_hsType' multilineArgs = \case
8484 HsSumTy NoExt xs ->
8585 parensHash N . sitcc $
8686 sep (txt "|" >> breakpoint) (sitcc . located' p_hsType) xs
87− HsOpTy NoExt x op y -> sitcc $ do
88− let opTree = OpBranch (tyOpTree x) op (tyOpTree y)
89− in p_tyOpTree (reassociateOpTree Just opTree)
87+ HsOpTy NoExt x op y ->
88+ sitcc $
89+ let opTree = OpBranch (tyOpTree x) op (tyOpTree y)
90+ in p_tyOpTree (reassociateOpTree Just opTree)
9091 HsParTy NoExt t ->
9192 parens N (located t p_hsType)
9293 HsIParamTy NoExt n t -> sitcc $ do
@@ -126,14 +127,14 @@ p_hsType' multilineArgs = \case
126127 -- If both this list itself and the first element is promoted,
127128 -- we need to put a space in between or it fails to parse.
128129 case (p, xs) of
129− (IsPromoted, ((L _ t) : _)) | isPromoted t -> space
130+ (IsPromoted, L _ t : _) | isPromoted t -> space
130131 _ -> return ()
131132 sitcc $ sep (comma >> breakpoint) (sitcc . located' p_hsType) xs
132133 HsExplicitTupleTy NoExt xs -> do
133134 txt "'"
134135 parens N $ do
135136 case xs of
136− ((L _ t) : _) | isPromoted t -> space
137+ L _ t : _ | isPromoted t -> space
137138 _ -> return ()
138139 sep (comma >> breakpoint) (located' p_hsType) xs
139140 HsTyLit NoExt t ->
@@ -145,8 +146,8 @@ p_hsType' multilineArgs = \case
145146 where
146147 isPromoted = \case
147148 HsTyVar _ IsPromoted _ -> True
148− HsExplicitListTy _ _ _ -> True
149− HsExplicitTupleTy _ _ -> True
149+ HsExplicitListTy {} -> True
150+ HsExplicitTupleTy {} -> True
150151 _ -> False
151152 interArgBreak =
152153 if multilineArgs
@@ -158,7 +159,7 @@ p_hsType' multilineArgs = \case
158159-- attached to it.
159160hasDocStrings :: HsType GhcPs -> Bool
160161hasDocStrings = \case
161− HsDocTy _ _ _ -> True
162+ HsDocTy {} -> True
162163 HsFunTy _ (L _ x) (L _ y) -> hasDocStrings x || hasDocStrings y
163164 _ -> False
164165
@@ -220,7 +221,7 @@ tyOpTree n = OpNode n
220221p_tyOpTree :: OpTree (LHsType GhcPs) (Located RdrName) -> R ()
221222p_tyOpTree (OpNode n) = located n p_hsType
222223p_tyOpTree (OpBranch l op r) = do
223− switchLayout [opTreeLoc l] $ do
224+ switchLayout [opTreeLoc l] $
224225 p_tyOpTree l
225226 breakpoint
226227 inci . switchLayout [opTreeLoc r] $ do