#7187: -main-is silently failes to create executable when no main is found.
-----------------------------------------------+----------------------------
Reporter: timthelion | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.2 | Keywords:
Os: Unknown/Multiple | Architecture:
Unknown/Multiple
Failure: Incorrect warning at compile-time | Testcase:
Blockedby: | Blocking:
Related: |
-----------------------------------------------+----------------------------
{{{
[timothy@timothy main-is]$ cat Foo.hs
module Foo where
main = print "foooballls"
[timothy@timothy main-is]$ ghc Foo.hs
[1 of 1] Compiling Foo ( Foo.hs, Foo.o )
[timothy@timothy main-is]$ ls
Foo.hi Foo.hs Foo.o
[timothy@timothy main-is]$ ghc Foo.hs -main-is GeorgeWashington
[timothy@timothy main-is]$ ls
Foo.hi Foo.hs Foo.o
[timothy@timothy main-is]$ ghc Foo.hs -main-is Foo
[1 of 1] Compiling Foo ( Foo.hs, Foo.o )
Linking Foo ...
[timothy@timothy main-is]$
There should be a warning when I try to compile with -main-is as
GeorgeWashington. Just for us bad spellers :D
$ ghc -v
Glasgow Haskell Compiler, Version 7.4.2, stage 2 booted by GHC version
7.4.1
--clip--
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7187>
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