patch applied (cabal): Add logging functions notice, info, debug functions and use them consistently

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Wed Oct 17 07:15:08 EDT 2007


Fri Oct 12 04:32:37 PDT 2007  Duncan Coutts <duncan at haskell.org>
  * Add logging functions notice, info, debug functions and use them consistently
  We previously had this kind of code all over the place:
  > when (verbosity >= verbose)
  >      (putStrLn "some message")
  We now replace that with:
  > info verbosity "some message"
  Much nicer.

    M ./Distribution/PackageDescription.hs -3 +2
    M ./Distribution/Simple.hs -5 +4
    M ./Distribution/Simple/Configure.hs -35 +29
    M ./Distribution/Simple/GHC.hs -10 +7
    M ./Distribution/Simple/Haddock.hs -11 +10
    M ./Distribution/Simple/Hugs.hs -5 +4
    M ./Distribution/Simple/Install.hs -8 +7
    M ./Distribution/Simple/JHC.hs -5 +3
    M ./Distribution/Simple/PreProcess.hs -2 +1
    M ./Distribution/Simple/Program.hs -14 +11
    M ./Distribution/Simple/Register.hs -3 +2
    M ./Distribution/Simple/SrcDist.hs -6 +5
    M ./Distribution/Simple/Utils.hs -12 +43



More information about the cabal-devel mailing list