#68: Warnings for unitialized fields
--------------------------------------+-------------------------------------
Reporter: nobody | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: _|_
Component: Compiler | Version: None
Resolution: None | Keywords: warnings
Difficulty: Easy (less than 1 hour) | Os: Unknown/Multiple
Testcase: | Architecture: Unknown/Multiple
Failure: None/Unknown |
--------------------------------------+-------------------------------------
Changes (by simonmar):
* failure: => None/Unknown
Old description:
> {{{
> Hello.
>
> Would it be possible to add flag to disable warnings for
> unitialized fields just when using constructor with
> zero fields? I mean, if I use
>
> Foo {}
>
> to construct empty record, it is a bit unpleasant that
> I get flooded by dozens of useless warnings; but I don't
> want to disable them -- they are useful when I forget
> to initialize some field(s).
>
> Zdenek Dvorak
>
> }}}
New description:
Would it be possible to add flag to disable warnings for
unitialized fields just when using constructor with
zero fields? I mean, if I use
{{{
Foo {}
}}}
to construct empty record, it is a bit unpleasant that
I get flooded by dozens of useless warnings; but I don't
want to disable them -- they are useful when I forget
to initialize some field(s).
Zdenek Dvorak
Comment:
Not clear if this is a good idea, but we'll leave it here anyway.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/68#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs