[GHC] #12491: ghc-iserv pattern match failure

#12491: ghc-iserv pattern match failure -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- While trying to debug the issue in https://ghc.haskell.org/trac/ghc/ticket/11981#comment:10 I found that that `ghc-iserv` executable run without any arguments fails with a pattern match failure: {{{ $ inplace/lib/bin/ghc-iserv ghc-iserv: user error (Pattern match failure in do expression at iserv/src/Main.hs:28:3-18) }}} Would be far nicer if it printed out an error message saying what arguments it expected, or how to run it to avoid this pattern match failure. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12491 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12491: ghc-iserv pattern match failure with no command line arguments -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12491#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12491: ghc-iserv pattern match failure with no command line arguments -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.2 Component: GHCi | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2494 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D2494 * version: 8.1 => 8.0.1 * milestone: => 8.0.2 Comment: See Phab:D2494 for a patch. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12491#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12491: ghc-iserv pattern match failure with no command line arguments
-------------------------------------+-------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: patch
Priority: normal | Milestone: 8.0.2
Component: GHCi | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2494
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#12491: ghc-iserv pattern match failure with no command line arguments -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: GHCi | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2494 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12491#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12491: ghc-iserv pattern match failure with no command line arguments -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: GHCi | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2494 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-8.0` as aa6da1174b6f6f52aff9cae5a8492aa3cd0ecdb4. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12491#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC