Is there an option to suppress specific warnings in code? I have two use cases in my work project:
- My renderer library uses a type-level machinery to render tables in a type-safe way. I don’t annotate toplevel declarations of renderer types as those would usually take about 20 lines of code with all the foralls and constraints. I usually decide to put them into where clauses, but they look better in a toplevel context. I would like to suppress the “no-type-annotation” warning.
- Another use case (perhaps I could live with this one) is where my http client library imports a ton of request/response types from http types, and making all the imports explicit again takes already like 5 lines of code. I would like to suppress “implicit import” warning.
Is there such a mechanism, or plans to implement it?