[Hackage] #101: Rejig the names of hooks provided by Cabal

Hackage trac at galois.com
Mon Jan 21 12:48:21 EST 2008

#101: Rejig the names of hooks provided by Cabal
  Reporter:  igloo at earth.li  |        Owner:  ijones
      Type:  enhancement     |       Status:  closed
  Priority:  high            |    Milestone:        
 Component:  Cabal library   |      Version:  1.1.6 
  Severity:  normal          |   Resolution:  fixed 
  Keywords:                  |   Difficulty:  normal
Ghcversion:  6.6             |     Platform:  Linux 
Changes (by duncan):

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


 We currently export:

  * `emptyUserHooks` which is almost useless.
  * `simpleUserHooks` which really is the default - it's what `defaultMain`
  * `defaultUserHooks` which is not the default. It is now deprecated.
  * `autoconfUserHooks` which is what defaultUserHooks used to be but with
 a sensible name and slightly saner behavior.

 In principle UserHooks could be an instance of `Monoid`. `mempty` would be
 `emptyUserHooks` and `mappend` could compose actions using `>>`.

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

More information about the cabal-devel mailing list