#4063: target "is not a module name or a source file"
----------------------------------------------------+-----------------------
Reporter: beroal | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.12.2
Keywords: target,module name,source file,flag | Difficulty:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure:
None/Unknown
----------------------------------------------------+-----------------------
Comment(by simonmar):
Replying to [comment:3 beroal]:
> Thanks Simon for the answer. I do not object to GHC appending file
extension and recognizing target type by default. But I fail to see how
"-x" may be a solution: it substitute an extension so makes matters even
more complex. Suppose that Haskell file is named "del.me" — with "-x hs"
would compile "del.hs" — failed again. ;)
Hmm, I think you may have misunderstood what `-x` does:
{{{
$ cat >del.me
module Main where
main = putStrLn "hello"
$ ghc -x hs del.me --make
[1 of 1] Compiling Main ( del.me, del.o )
Linking del ...
}}}
Isn't that what you wanted?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4063#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