[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmonad
Subject:    [xmonad] Issue 240 in xmonad: recompilation fails silently
From:       codesite-noreply () google ! com
Date:       2009-10-28 13:41:59
Message-ID: 00504502cb1f7e4e960476fef5dd () google ! com
[Download RAW message or body]

Updates:
	Status: Accepted
	Owner: vogt.adam
	Labels: Component-Core Usability

Comment #2 on issue 240 by vogt.adam: recompilation fails silently
http://code.google.com/p/xmonad/issues/detail?id=240

The attached code uses haskell-src-exts to grab the module name and throws  
a warning
when it isn't main (no module name is implicitly main).

It might be better to use the ghc-api for the parsing (since  
haskell-src-exts rejects
more programs than ghc does)

This adds a pretty serious dependency, so as-is this code cannot go into  
core.

A better way might be to check after the compilation that there is actually  
a
generated binary.

This issue is somewhat related to the suggestion for keeping ghc's temp  
files out of
~/.xmonad/



Attachments:
	getModName.hs  583 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
xmonad mailing list
xmonad@haskell.org
http://www.haskell.org/mailman/listinfo/xmonad
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic