Hi >> Is there any hint option or technique we could use to suppress a particular >> warning/error for a particular file? (In this case it'd be to suppress the >> custom readFile/hGetContents errors for files x,y,& z.) > But that would be wrong! HLint can already do that, but we have to ratify > *instances* of the problem, not files. What you propose would disable the > check > for all of the file, and that's naturally undesirable.
You can already do: ignore "Eta reduce" = Darcs.Diff.readFilePrimitive Which will ignore the hint name (Eta reduce) in the module Darcs.Diff but only within the function readFilePrimitive - that's a fairly specific restriction. If you named all your violating functions with violate_readFilePrimitive it would be very clear to people that this function violates some policy (although to me it looks ugly) If you can think of anything else that would make it easier do let me know. Thanks Neil _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
