Skip to content

Commit 66f1094

Browse files
committed
Replace NoExtField with noExtField
1 parent aab4875 commit 66f1094

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ghcide/src/Development/IDE/Plugin/CodeAction/ExactPrint.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ extendImportTopLevel df idnetifier (L l it@ImportDecl {..})
197197
top <- uniqueSrcSpanT
198198
rdr <- liftParseAST df idnetifier
199199
let lie = L src $ IEName rdr
200-
x = L top $ IEVar NoExtField lie
200+
x = L top $ IEVar noExtField lie
201201
when hasSibling $
202202
addTrailingCommaT (last lies)
203203
addSimpleAnnT x (DP (0, if hasSibling then 1 else 0)) []
@@ -224,7 +224,7 @@ extendImportViaParent df parent child (L l it@ImportDecl {..})
224224
srcChild <- uniqueSrcSpanT
225225
childRdr <- liftParseAST df child
226226
let childLIE = L srcChild $ IEName childRdr
227-
x :: LIE GhcPs = L ll' $ IEThingWith NoExtField absIE NoIEWildcard [childLIE] []
227+
x :: LIE GhcPs = L ll' $ IEThingWith noExtField absIE NoIEWildcard [childLIE] []
228228
modifyAnnsT $ \anns ->
229229
let oldKey = mkAnnKey lAbs
230230
oldValue = anns Map.! oldKey
@@ -243,7 +243,7 @@ extendImportViaParent df parent child (L l it@ImportDecl {..})
243243
addTrailingCommaT (last lies')
244244
let childLIE = L srcChild $ IEName childRdr
245245
addSimpleAnnT childRdr (DP (0, if hasSibling then 1 else 0)) [(G AnnVal, dp00)]
246-
return $ L l it {ideclHiding = Just (hide, L l' $ reverse pre ++ [L l'' (IEThingWith NoExtField twIE NoIEWildcard (lies' ++ [childLIE]) [])] ++ xs)}
246+
return $ L l it {ideclHiding = Just (hide, L l' $ reverse pre ++ [L l'' (IEThingWith noExtField twIE NoIEWildcard (lies' ++ [childLIE]) [])] ++ xs)}
247247
go hide l' pre (x : xs) = go hide l' (x : pre) xs
248248
go hide l' pre []
249249
| hasSibling <- not $ null pre = do
@@ -257,7 +257,7 @@ extendImportViaParent df parent child (L l it@ImportDecl {..})
257257
addTrailingCommaT (head pre)
258258
let parentLIE = L srcParent $ IEName parentRdr
259259
childLIE = L srcChild $ IEName childRdr
260-
x :: LIE GhcPs = L l'' $ IEThingWith NoExtField parentLIE NoIEWildcard [childLIE] []
260+
x :: LIE GhcPs = L l'' $ IEThingWith noExtField parentLIE NoIEWildcard [childLIE] []
261261
addSimpleAnnT parentRdr (DP (0, if hasSibling then 1 else 0)) [(G AnnVal, DP (0, 0))]
262262
addSimpleAnnT childRdr (DP (0, 0)) [(G AnnVal, DP (0, 0))]
263263
addSimpleAnnT x (DP (0, 0)) [(G AnnOpenP, DP (0, 1)), (G AnnCloseP, DP (0, 0))]

0 commit comments

Comments
 (0)