@@ -78,12 +78,12 @@ isDctorExported ident (Just exps) ctor = test `any` exps
79-- Return the exported data constructors for a given type.
79-- Return the exported data constructors for a given type.
81−exportedDctors :: Module -> ProperName -> [ProperName]
81+exportedDctors :: Module -> ProperName -> [(ProperName, [Type])]
82exportedDctors (Module _ _ decls exps) ident =
82exportedDctors (Module _ _ decls exps) ident =
83− filter (isDctorExported ident exps) dctors
83+ filter (isDctorExported ident exps . fst) dctors
85 dctors = concatMap getDctors (flattenDecls decls)
85 dctors = concatMap getDctors (flattenDecls decls)
86− getDctors (DataDeclaration _ _ _ ctors) = map fst ctors
86+ getDctors (DataDeclaration _ _ _ ctors) = ctors
87 getDctors (PositionedDeclaration _ _ d) = getDctors d
87 getDctors (PositionedDeclaration _ _ d) = getDctors d
88 getDctors _ = []
88 getDctors _ = []