#3515: Use --make mode by default
---------------------------------+------------------------------------------
    Reporter:  duncan            |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  high              |    Milestone:  6.14.1      
   Component:  Driver            |      Version:              
    Keywords:                    |   Difficulty:  Unknown     
          Os:  Unknown/Multiple  |     Testcase:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------
Changes (by simonmar):

  * priority:  normal => high
  * failure:  => None/Unknown


Comment:

 I really think we should do this, given the number of times beginners get
 tripped up by the fact that "ghc Setup.hs" gives linker errors, for
 example.

 So here's a draft plan.  Can anyone forsee any problems?

  * If the command line contains any Haskell source files and ''no'' mode
 flags, then we use `--make` rather than batch processing
    * for this purpose, `-c` counts as a mode flag, otherwise build systems
 break

 Strange things arising:

  * If you want the no-linking behaviour with `--make`, then you have to
 say `--make -c` explicitly

  * The existing behaviour of `ghc Foo.hs` is not available, instead you
 get `ghc --make Foo.hs`. The latter is usually the right thing, but If you
 actually wanted the former behaviour (I'm not sure why), you now have to
 do it in two steps: `ghc -c Foo.hs; ghc Foo.o`.


 See also

 [[TicketQuery(id=3783)]]

 which is in the same bit of code, so do them both at the same time.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3515#comment:4>
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

Reply via email to