#5428: Creating executable in OS X Lion
----------------------------------------+-----------------------------------
Reporter: sweirich | Owner:
Type: bug | Status: infoneeded
Priority: normal | Milestone:
Component: Compiler | Version: 7.0.3
Keywords: linking main executable | Testcase:
Blockedby: | Difficulty:
Os: MacOS X | Blocking:
Architecture: x86_64 (amd64) | Failure: GHC rejects valid
program
----------------------------------------+-----------------------------------
Comment(by judahj):
For what it's worth, this works fine for me on Lion with Xcode 4.1
(64-bit), using both `ghc-7.2.1` and `ghc-7.0.3`.
I made a file `Standalone.hs`:
{{{
module Standalone where
main = putStrLn "Hello"
}}}
and ran
{{{
ghc Standalone.hs -main-is Standalone
}}}
which produced an executable named "Standalone".
Does that work for you?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5428#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