This proposal is a good start, but it needs more fleshing out.
- What scopes are allowed to suppress over? For example, is it possible to suppress warnings for scopes other than a function (for example, within a case expression)? What about type declarations? Local declarations? In a type signature?
- Is there a way to control what warnings are suppressed? Presumably, a user would like to suppress only certain warnings in certain places.
- Your proposal contains motivation and examples. These are necessary parts of a proposal. But we also need a full specification of the feature, describing precisely the syntax (where, exactly, `SUPPRESS` is allowed) and semantics.
I hope this feedback is helpful!
Richard
Hi devs!
I edited wiki page [1] with my proposal about more than week ago. The main idea is that we mark functins with pragma and filter all warnings that it will throw. Although it is the question of bad design, i think users, who have to support old libraries will find this helpful.
I don't know about suppressing specific kinds of warnings. I think, that it would be more precise to filter them in one place instead of many.
Can someone review it? Sorry for bothering, if any
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs