record field names vs. -fwarn-unused-binds

Evan Laforge qdunkan at
Wed Nov 4 17:20:17 UTC 2015

On Tue, Nov 3, 2015 at 10:42 AM, Thomas Miedema <thomasmiedema at> wrote:
> Through a patch by Oleg Grenrus (phadej), GHC 8 will have the following new
> flags:
>  -fwarn-unused-top-binds
>  -fwarn-unused-local-binds
>  -fwarn-unused-pattern-binds
> So you'll be able to pick and choose.

I suppose a record accessor would be considered a top bind?  I still
kind of like getting warnings about those, just not the ones from

On Wed, Nov 4, 2015 at 6:56 AM, Henning Thielemann
<lemming at> wrote:
> I do it this way and I do not consider it a work-around. The underscore is
> just the shortest way to say that a record field name is not used. It's
> shorter than any pragma could be.

I agree, that's what I meant by "not much better than changing the name".

I guess it would have to be yet another flag like
-fwarn-unused-record-accessors... not sure if it would be worth it
though, considering it's a relatively minor issue.

More information about the Glasgow-haskell-users mailing list