[GHC] #10560: -f and -O options interact in non-obvious, order dependent ways
GHC
ghc-devs at haskell.org
Mon Jun 22 11:24:12 UTC 2015
#10560: -f and -O options interact in non-obvious, order dependent ways
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect | Unknown/Multiple
warning at compile-time | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by svenpanne):
I think we should follow the principle of least surprise, and IMHO if the
order is relevant, it *is* least surprising to all people who know various
tools/compilers/etc. I would strongly object any change regarding this,
even adding warnings (will break builds, see above) or handling meta flags
differently. If it helps, think of the command line as a list of functions
modifying the flag state and GHC as doing a foldl over it, starting with
its default state. :-)
Making the documentation more explicit/clearer is perfectly fine, though.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10560#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list