@@ -66,12 +66,18 @@ p_lie = \case
6666 located l1 p_ieWrappedName
6767 txt " (..)"
6868 IEThingWith NoExt l1 w xs _ -> sitcc $ do
69+ -- XXX I have no idea what field labels are in this context.
6970 located l1 p_ieWrappedName
7071 breakpoint
71− -- XXX I have no idea what field labels are in this context.
7272 inci $ do
73− p_ieWildcard w
74− parens . velt $ withSep comma (located' p_ieWrappedName) xs
73+ let names :: [R ()]
74+ names = located' p_ieWrappedName <$> xs
75+ parens . velt . withSep comma id $
76+ case w of
77+ NoIEWildcard -> names
78+ IEWildcard n ->
79+ let (before, after) = splitAt n names
80+ in before ++ [txt ".."] ++ after
7581 IEModuleContents NoExt l1 -> located l1 p_hsmodName
7682 -- XXX I have no idea what these things are for.
7783 IEGroup NoExt _ _ -> return ()