[GHC] #11247: Weird error from running runghc on an invalid input filename
GHC
ghc-devs at haskell.org
Tue Feb 2 16:57:40 UTC 2016
#11247: Weird error from running runghc on an invalid input filename
-------------------------------------+-------------------------------------
Reporter: rwbarton | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 7.8.4
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect | Unknown/Multiple
warning at compile-time | Test Case: runghc/T11247
Blocked By: | Blocking:
Related Tickets: #7765 | Differential Rev(s): Phab:D1678
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by thomie):
Some possible ways to solve this:
* Throw an exception when `classifyLdInput` finds an unrecognised input. I
wonder if this would break anything.
* Or only throw an exception when the unrecognised input is a file that
doesn't exist (passing an existing but invalid file would still be a
warning).
* Or check before putting files in `ldInputs` whether they exist. This
affects normal `ghc` make and batch mode as well.
Do not:
* modify runghc, since `ghc -e :main foo.bar` has the same problem
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11247#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list