[GHC] #8245: ghc-pkg list prints packages in non-alphabetical order
#8245: ghc-pkg list prints packages in non-alphabetical order ------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- Instead, it prints the ones with the smallest version first. That does not make much sense. I will attach a patch. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8245> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8245: ghc-pkg list --simple-output prints packages in non-alphabetical order -------------------------------------+------------------------------------ Reporter: nh2 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8245#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8245: ghc-pkg list --simple-output prints packages in non-alphabetical order -------------------------------------+------------------------------------ Reporter: nh2 | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by nh2): * status: new => patch Comment: Please pull from https://github.com/nh2/ghc/compare/fix-ghc-pkg-list- sorting This makes --simple-output have the same order as the non-simple output. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8245#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8245: ghc-pkg list --simple-output prints packages in non-alphabetical order -------------------------------------+------------------------------------ Reporter: nh2 | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by nh2): * milestone: => 7.8.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8245#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8245: ghc-pkg list --simple-output prints packages in non-alphabetical order -------------------------------------+------------------------------------ Reporter: nh2 | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Austin Seipp <aseipp@…>): In [changeset:021b1f8991850a20c2c8ace1c9282251e10fda03/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="021b1f8991850a20c2c8ace1c9282251e10fda03" Fix ghc-pkg list --simple-output not being alphabetical (#8245). It was sorted by version number so far. I also added a sort to the normal output (without --simple-output) since the source it comes from does not guarantee sortedness. Signed-off-by: Austin Seipp <aseipp@pobox.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8245#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8245: ghc-pkg list --simple-output prints packages in non-alphabetical order -------------------------------------+------------------------------------ Reporter: nh2 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: Merged, thanks! -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8245#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8245: ghc-pkg list --simple-output prints packages in non-alphabetical order -------------------------------------+--------------------------------- Reporter: nh2 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | -------------------------------------+--------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"151c4b0b6caff2e1af764699c54302933c628861/ghc" 151c4b0/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="151c4b0b6caff2e1af764699c54302933c628861" ghc-pkg: don't sort packages unnecessarily The packages in the package database are already sorted alphabetically by this point (see db_stack_sorted). This is a better fix for #8245, commit 021b1f8. Test Plan: look at output of './inplace/bin/ghc-pkg list [--simple-output]' Reviewers: austin, bgamari, psibi Reviewed By: psibi Differential Revision: https://phabricator.haskell.org/D1579 GHC Trac Issues: #8245 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8245#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC