[GHC] #8022: Outdated documentation for the -fwarn-lazy-unlifted-bindings warning
GHC
ghc-devs at haskell.org
Sun Sep 8 16:57:58 CEST 2013
#8022: Outdated documentation for the -fwarn-lazy-unlifted-bindings warning
-------------------------------------+------------------------------------
Reporter: asr | Owner: thoughtpolice
Type: bug | Status: new
Priority: highest | Milestone: 7.8.1
Component: Documentation | Version: 7.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by simonmar):
What I'm remembering is this:
commit 67157c5c25c8044b54419470b5e8cc677be060c3
{{{
Author: simonpj at microsoft.com <unknown>
Date: Tue Nov 16 17:18:43 2010 +0000
Warn a bit less often about unlifted bindings.
Warn when
(a) a pattern bindings binds unlifted values
(b) it has no top-level bang
(c) the RHS has a *lifted* type
Clause (c) is new, argued for by Simon M
Eg x# = 4# + 4# -- No warning
(# a,b #) = blah -- No warning
I# x = blah -- Warning
}}}
Which should mean that the bindings that Happy uses (where bindings of
type `Int#`) do not generate warnings. So is there a bug in the warning?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8022#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list