@@ -35,9 +35,16 @@ p_typeSig
35 :: [Located RdrName] -- ^ Names (before @::@)
35 :: [Located RdrName] -- ^ Names (before @::@)
36 -> LHsSigWcType GhcPs -- ^ Type
36 -> LHsSigWcType GhcPs -- ^ Type
38−p_typeSig names hswc = do
38+p_typeSig [] _ = return () -- should not happen though
39+p_typeSig (n:ns) hswc = do
39− spaceSep p_rdrName names
40+ p_rdrName n
42+ then p_typeAscription hswc
44+ vlayout (return ()) newline
46+ velt (withSep comma p_rdrName ns)
40− p_typeAscription hswc
47+ p_typeAscription hswc
42p_typeAscription
49p_typeAscription
43 :: LHsSigWcType GhcPs
50 :: LHsSigWcType GhcPs