<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">No. As a workaround I remove the Main.o
      file after the executable has been linked. It works, but it has
      its drawbacks.<br>
      <br>
      On 2014-01-12 17:23, Carter Schonwald wrote:<br>
    </div>
    <blockquote
cite="mid:CAHYVw0yCFUeHOwyT0927H5OORu-0xYx0TTTSadMFo_3wiRNPPQ@mail.gmail.com"
      type="cite">Christian, have you tried using cabal? People write
      cabal files with multiple executables being generated all the
      time.  <span></span><br>
      <br>
      On Sunday, January 12, 2014, Christian Brolin wrote:<br>
      <blockquote class="gmail_quote" style="margin:0 0 0
        .8ex;border-left:1px #ccc solid;padding-left:1ex">
        H.<br>
        <br>
        The documentation (version 7.6.3) section 7.7.2 Output files
        says that the source file name of the Main module does not have
        to be Main.hs making it "possible to have several Main modules
        in separate source files in the same directory". While this is
        true and promising it is seems to be unusable since GHC always
        compiles the main source file into an object file called Main.o.<br>
        <br>
        _______________________________________________<br>
        Glasgow-haskell-users mailing list<br>
        <a moz-do-not-send="true">Glasgow-haskell-users@haskell.org</a><br>
        <a moz-do-not-send="true"
          href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users"
          target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>