
#9905: ghc-7.8.x command line error -------------------------------------+------------------------------------- Reporter: zRecursive | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: Incorrect | Blocked By: result at runtime | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by rwbarton): So, ghc 7.6 did not care if an expression given to `-e` failed to compile; it would exit with status code 0 or proceed to the next `-e` flag. See #7962. That could explain all the results here, except that in ghc 7.6, `-e "import Data.List"` actually works: try `ghc-7.6.3 -e "import Data.List" -e "sort [2,1]"`. This no longer works in ghc 7.8, so there is certainly something to fix here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9905#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler