[Hackage] #155: show . readPackageDescription /= id

Hackage trac at galois.com
Tue Sep 25 15:31:14 EDT 2007


#155: show . readPackageDescription /= id
----------------------------------------+-----------------------------------
  Reporter:  kolmodin at dtek.chalmers.se  |        Owner:  nominolo
      Type:  defect                     |       Status:  assigned
  Priority:  normal                     |    Milestone:          
 Component:  Cabal                      |      Version:  HEAD    
  Severity:  normal                     |   Resolution:          
  Keywords:                             |   Difficulty:  normal  
Ghcversion:  6.6                        |     Platform:  Linux   
----------------------------------------+-----------------------------------
Changes (by nominolo):

  * status:  new => assigned

Comment:

 Well, first of all, we didn't have that property before.  The counterpart
 to {{{show}}} is {{{read}}}, not {{{readFoo}}}.  We did however have the
 property:
 {{{
 prop_idempParsePrint x = (r . s . r) x == r x
   where r = readPackageDescription; s = showPackageDescription
 }}}
 I agree that this would be nice to have, though.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/155#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list