[GHC] #9905: ghc-7.8.x command line error

#9905: ghc-7.8.x command line error -------------------------------------+------------------------------------- Reporter: zRecursive | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Keywords: | Operating System: FreeBSD Architecture: Unknown/Multiple | Type of failure: Difficulty: Unknown | None/Unknown Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- `$ghc -e "import Data.List" -e "print 9"` will not output 9 but `ghc -e "print 9"` works normally. However, both commands work on ghc-7.6.x. Regards! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9905 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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: FreeBSD | Architecture: Unknown/Multiple Type of failure: | Difficulty: Unknown None/Unknown | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by pgj): Is this unique to FreeBSD? Does not the same happens on other platforms? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9905#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

Is this unique to FreeBSD? Does not the same happens on other
#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: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by pgj): * os: FreeBSD => Unknown/Multiple Comment: Replying to [comment:1 pgj]: platforms? I have just checked on Windows, it works the same way. Thus I have the gut feeling that something in GHC itself was changed, this is not related to the actual platform. Perhaps the consequent `-e` flags are not processed any more, only the first one? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9905#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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: | -------------------------------------+------------------------------------- Changes (by pgj): * failure: None/Unknown => Incorrect result at runtime -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9905#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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 thomie): It's the import itself that is causing ghc-7.8 and later to fail. {{{ $ ghc-7.6.3 -e "import Data.List" $ echo $? 0 $ ghc-7.8.3 -e "import Data.List" $ echo $? 1 $ ghc-7.9.20141219 -e "import Data.List" $ echo $? 1 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9905#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#9905: ghc-7.8.x command line error -------------------------------------+------------------------------------- Reporter: zRecursive | Owner: rwbarton 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: | -------------------------------------+------------------------------------- Changes (by rwbarton): * owner: => rwbarton -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9905#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9905: ghc-7.8.x command line error -------------------------------------+------------------------------------- Reporter: zRecursive | Owner: rwbarton 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: Phab:D581 | -------------------------------------+------------------------------------- Changes (by rwbarton): * differential: => Phab:D581 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9905#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9905: ghc-7.8.x command line error
-------------------------------------+-------------------------------------
Reporter: zRecursive | Owner: rwbarton
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: Phab:D581 |
-------------------------------------+-------------------------------------
Comment (by Reid Barton

#9905: ghc-7.8.x command line error -------------------------------------+------------------------------------- Reporter: zRecursive | Owner: rwbarton Type: bug | Status: merge 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: Phab:D581 | -------------------------------------+------------------------------------- Changes (by rwbarton): * status: new => merge Comment: Austin: please merge [changeset:"cc510b46b4f6046115cd74acc2c8726c91823bcf/ghc"] also, thanks. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9905#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9905: ghc-7.8.x command line error -------------------------------------+------------------------------------- Reporter: zRecursive | Owner: rwbarton Type: bug | Status: merge Priority: normal | Milestone: 7.10.1 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: Phab:D581 | -------------------------------------+------------------------------------- Changes (by rwbarton): * milestone: => 7.10.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9905#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC