#68: Warnings for unitialized fields
--------------------------------------+-------------------------------------
Reporter: nobody | Owner:
Type: feature request | Status: infoneeded
Priority: normal | Milestone: _|_
Component: Compiler | Version: None
Resolution: None | Keywords: warnings
Testcase: | Blockedby:
Difficulty: Easy (less than 1 hour) | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
--------------------------------------+-------------------------------------
Comment(by simonpj):
Thanks for contriubting a patch.
However, I'm not clear of the original intent here. Consider
{{{
data T = T { x,y::Int }
f = T { x = 3 }
g = T {}
}}}
It would be very odd to get a warning from `f` but not from `g`. I'm not
sure this is what the original requester was asking. I thought he didn't
want a warning when `T` had zero fields -- and indeed you don't get a
warning then.
Puzzled.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/68#comment:9>
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