From: Duncan C. <dun...@wo...> - 2006-11-24 22:08:03
|
Sat Nov 18 06:38:11 PST 2006 Duncan Coutts <du...@co...> * Exclude attributes that are not readable and only writable on construction We don't support setting construction time attrs at the moment. hunk ./tools/apiGen/ApiGen.hs 164 + . map Module.excludeConstructOnlyAttrs hunk ./tools/apiGen/Module.hs 693 + +excludeConstructOnlyAttrs :: Module -> Module +excludeConstructOnlyAttrs module_ = + module_ { + module_decls = filter (not . isConstructOnly) (module_decls module_) + } + where isConstructOnly Decl { + decl_body = AttributeProp { + attribute_constructonly = True, + attribute_readable = False + } + } = True + isConstructOnly _ = False + |