Opened 3 years ago

Closed 3 years ago

#7228 closed bug (fixed)

ghc-pkg prints an awful lot of usage information

Reported by: benmachine Owned by:
Priority: normal Milestone: 7.8.1
Component: ghc-pkg Version: 7.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


If you misspell a command with ghc-pkg, you are rewarded with 112 lines of output. Unless you have a gigantic terminal, this will tend to mean that your actual error message will disappear entirely from view.

ghc-pkg should probably just briefly refer users to --help if they want the whole thing.

Attachments (1)

0001-Make-ghc-pkg-print-less-on-error.patch (1.6 KB) - added by benmachine 3 years ago.
patch to reduce output of ghc-pkg on error

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by benmachine

patch to reduce output of ghc-pkg on error

comment:1 Changed 3 years ago by igloo

  • difficulty set to Unknown
  • Milestone set to 7.8.1
  • Status changed from new to patch

Thanks for the patch; we'll take a look

comment:2 Changed 3 years ago by igloo

  • Resolution set to fixed
  • Status changed from patch to closed


commit 2c6939a5b0b11950712be160d2712aee0e6f8b4b
Author: Ben Millwood <[email protected]>
Date:   Fri Sep 7 17:22:46 2012 +0100
    Make ghc-pkg print less on error.


Note: See TracTickets for help on using tickets.