[Hackage] #147: Replace Extension type with (newtyped?) String

Hackage trac at galois.com
Tue Dec 22 08:53:30 EST 2009


#147: Replace Extension type with (newtyped?) String
----------------------------+-----------------------------------------------
  Reporter:  guest          |        Owner:        
      Type:  enhancement    |       Status:  closed
  Priority:  normal         |    Milestone:  _|_   
 Component:  Cabal library  |      Version:  1.1.6 
  Severity:  normal         |   Resolution:  fixed 
  Keywords:                 |   Difficulty:  normal
Ghcversion:  6.4.2          |     Platform:  Linux 
----------------------------+-----------------------------------------------
Changes (by duncan):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 I'm closing this. The original problem is fixed though not via the
 suggested solution. That is to say that Cabal does now let you list
 extensions in the .cabal file that Cabal does not know about and if ghc
 supports them then it'll work.

 However we still want to maintain a registry of known semi-standardised
 extensions. Then the choice between using a newtyped String and an
 enumeration with an `UnknownExtension String` case is a more detailed
 question of API and implementation. If anyone feels strongly about the
 latter then they should present their arguments (and patches) in this
 ticket or a new ticket.

 Alternatively if anyone feels strongly that Cabal should not maintain the
 registry of known semi-standardised extensions, then that's a discussion
 we should probably hold on the mailing list.

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


More information about the cabal-devel mailing list