From d7367a3be7647d7e60aed12a345a370a04e8a516 Mon Sep 17 00:00:00 2001
From: Adam Vogt <vogt.adam@gmail.com>
Date: Tue, 1 Jan 2013 04:50:34 +0100
Subject: Add flags for call to ghc closing issue 240

Ignore-this: 42a6a8599b615884c95626f74e3ba4a

The -main-is flag goes back to at least ghc 6.10, and maybe the warning that
this otherwise redundant flag enables (when xmonad.hs isn't a  module Main)
also dates back that far.

darcs-hash:20130101035034-1499c-fd2fa2fef7c36882fa529f3f96777453b0b14d1c.gz
---
 XMonad/Core.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/XMonad/Core.hs b/XMonad/Core.hs
index 414437b..e3d1b27 100644
--- a/XMonad/Core.hs
+++ b/XMonad/Core.hs
@@ -460,7 +460,7 @@ recompile force = io $ do
         -- temporarily disable SIGCHLD ignoring:
         uninstallSignalHandlers
         status <- bracket (openFile err WriteMode) hClose $ \h ->
-            waitForProcess =<< runProcess "ghc" ["--make", "xmonad.hs", "-i", "-ilib", "-fforce-recomp", "-v0", "-o",binn] (Just dir)
+            waitForProcess =<< runProcess "ghc" ["--make", "xmonad.hs", "-i", "-ilib", "-fforce-recomp", "-main-is", "main", "-v0", "-o",binn] (Just dir)
                                     Nothing Nothing Nothing (Just h)
 
         -- re-enable SIGCHLD:
-- 
cgit v1.2.3