Opened 5 years ago

Closed 5 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 5 years ago.
patch to reduce output of ghc-pkg on error

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by benmachine

patch to reduce output of ghc-pkg on error

comment:1 Changed 5 years ago by igloo

difficulty: Unknown
Milestone: 7.8.1
Status: newpatch

Thanks for the patch; we'll take a look

comment:2 Changed 5 years ago by igloo

Resolution: fixed
Status: patchclosed


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


Note: See TracTickets for help on using tickets.