[commit: Cabal] : Fix the display of the license in "cabal list" output (9bcda2a)

Ian Lynagh igloo at earth.li
Fri Jun 24 02:05:49 CEST 2011


Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal

On branch  : 

http://hackage.haskell.org/trac/ghc/changeset/9bcda2a429ef85e3b62d8c75cac5fd46f9772f7f

>---------------------------------------------------------------

commit 9bcda2a429ef85e3b62d8c75cac5fd46f9772f7f
Author: Duncan Coutts <duncan at haskell.org>
Date:   Wed Jan 13 19:19:13 2010 +0000

    Fix the display of the license in "cabal list" output

>---------------------------------------------------------------

 cabal-install/Distribution/Client/List.hs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cabal-install/Distribution/Client/List.hs b/cabal-install/Distribution/Client/List.hs
index 7602bb1..0633d15 100644
--- a/cabal-install/Distribution/Client/List.hs
+++ b/cabal-install/Distribution/Client/List.hs
@@ -175,7 +175,7 @@ showPackageSummaryInfo pkginfo =
                   | otherwise      -> text "[ Unknown ]"
          Just pkg -> disp (packageVersion pkg)
      , maybeShow (homepage pkginfo) "Homepage:" text
-     , text "License: " <+> text (show (license pkginfo))
+     , text "License: " <+> text (display (license pkginfo))
      ])
      $+$ text ""
   where





More information about the Cvs-libraries mailing list