main-is argument cannot be hierarchical module
Foobar.hs:
module Foo.Bar where
main = putStrLn "hi"
ghc --make -main-is Foo.bar Foobar -o Foobar
Warning: output was redirected with -o, but no output will be generated
When not using hierarchical names, i.e. name Foo.bar FooSomething and -main-is FooSomething, a binary FooSomething is created.
Reported for 6.9, but probably also in 6.8.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.9 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |