[GHC] #7962: "ghc -e <invalid expression>" should return non-zero exit status
GHC
ghc-devs at haskell.org
Thu Nov 28 09:39:18 UTC 2013
#7962: "ghc -e <invalid expression>" should return non-zero exit status
------------------------------------+------------------------------------
Reporter: timmaxw | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.6.2
Resolution: | Keywords:
Operating System: Linux | Architecture: Unknown/Multiple
Type of failure: Other | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
------------------------------------+------------------------------------
Comment (by simonmar):
The patch looks ok. I would refactor it a bit, like this:
{{{
when (not success) $ maybe (return ()) lift sourceErrorHandler
runCommands' eh sourceErrorHandler gCmd
}}}
Don't forget to add a test to testsuite/tests/ghci. If the testsuite
isn't working right now, search for a ticket about that, and if there
isn't one, make one :-)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/7962#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list