id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
5905	ghc with incorrect arguments deletes source file	dowski		"I'm just learning haskell and I mistakenly passed the -o argument to ghc instead of -c.  When combined with the -i argument (which I also mistakenly supplied, thinking of ghci), this unlinks the file named by -o.

This is certainly a case of PEBKAC, but ghc should probably do something other than unlinking the file.

{{{
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.3
$ ls path/to/
source.hs
$ ghc -i . -o path/to/source.hs 
/usr/bin/ld: cannot find .: File format not recognized
collect2: ld returned 1 exit status
$ ls path/to/
$
}}}"	bug	closed	normal		Compiler	7.0.3	wontfix			Linux	Unknown/Multiple	Compile-time performance bug	Unknown				
