This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 05 Mar, 2013 1 commit
    • Eric Kow's avatar
      Suppress missing haddock warning for some packages. · 4bfbe2db
      Eric Kow authored
      Allow a hardcoded whitelist of packages (currently 'rts') to not have
      haddocks. When building several packages together, the accumulation of
      these spurious warnings can make it a bit harder to notice legitimate
      errors.
      4bfbe2db
  2. 03 Mar, 2013 1 commit
  3. 01 Mar, 2013 1 commit
    • lukexi's avatar
      Return Maybe Platform as part of compiler configure, and place it in... · 7a0941c8
      lukexi authored
      Return Maybe Platform as part of compiler configure, and place it in LocalBuildInfo as hostPlatform.
      GHC infers the platform form ghc --info using new 'platformFromTriple' function. Other compilers return Nothing, which triggers fallback to old behavior of using buildPlatform. hostPlatform is then threaded through to initialPathTemplateEnv.
      7a0941c8
  4. 06 Feb, 2013 1 commit
  5. 23 Jan, 2013 1 commit
  6. 16 Jan, 2013 1 commit
  7. 14 Jan, 2013 2 commits
    • John Wiegley's avatar
      A few more code simplifications · 2ff85140
      John Wiegley authored
      2ff85140
    • John Wiegley's avatar
      Add extra-html-files, for installing extra html files · 49a2be96
      John Wiegley authored
      For example, you might have an images/ directory in your project, with
      images that you refer to from Haddock with:
      
          <<images/foo.png>>
      
      Then in your Cabal file you would include:
      
          extra-html-files: images/*.png
      
      And these would both be packaged by sdist, and "cabal haddock" will
      install them in:
      
          ~/.cabal/share/doc/PROJECT/html/images/*.png
      
      Fixes #1167
      49a2be96
  8. 26 Nov, 2012 1 commit
  9. 08 Nov, 2012 3 commits
  10. 20 Jun, 2012 1 commit
  11. 27 Mar, 2012 1 commit
    • Duncan Coutts's avatar
      Convert ghc option construction to use an options record · 5f50fb1e
      Duncan Coutts authored
      Using a structured representation of the ghc options rather
      than [String] makes it easier to share and reuse the code
      for building sets of ghc options, which makes it easier to
      add code for calling ghci.
      
      This is based on Sam Anklesaria's GSoC work on "cabal repl"
      5f50fb1e
  12. 16 Nov, 2011 1 commit
  13. 16 Oct, 2011 1 commit
  14. 23 Oct, 2011 1 commit
  15. 18 Jul, 2011 1 commit
  16. 08 Jul, 2011 1 commit
    • Duncan Coutts's avatar
      Fix withComponentsLBI and move Components to LocalBuildInfo module · 1c20a632
      Duncan Coutts authored
      An annoyance of the current Simple build system is that each phase
      (build, install, etc) can be passed additional HookedBuildInfo which
      gets merged into the PackageDescription. This means that we cannot
      process the PackageDescription up front at configure time and just
      store and reuse it later, we have to work from it each time afresh.
      
      The recent addition of Components (libs, exes, test suites) and a
      topoligical sort of the components in the LocalBuildInfo fell foul
      of this annoyance. The LocalBuildInfo stored the entire component
      which meant they were not updated with the HookedBuildInfo. This
      broke packages with custom Setup.hs scripts that took advantage of
      the HookedBuildInfo feature, including those with configure scripts.
      
      The solution is to store not the list of whole components but the
      list of component names. Then withComponentsLBI retrieves the actual
      components from the PackageDescription which thus includes the
      HookedBuildInfo.
      
      Also moved the Components into an internal module because (for the
      moment at least) it is part of the Simple build system, not part of
      the package description.
      1c20a632
  17. 19 Jun, 2011 1 commit
  18. 05 May, 2011 1 commit
    • intractable's avatar
      intrapackage-deps-and-per-component-preprocessing · 2e348126
      intractable authored
      This patch adds intrapackage dependency resolution so that components
      (libraries, exes, test suites) are build in the correct order.  This mean it's
      now possible to have, e.g., executables that depend on other executables defined
      in the same package description: the build-tools namespace has been extended
      accordingly.
        
      Related to this change is the refactoring of the do-it-all preprocessSources
      function, formerly invoked by initialBuildSteps, into a a function
      preprocessComponent that is invoked when a component is being built.  This lets
      us use executables defined in a package to be used as a custom preprocessor when
      building other components.
        
      Finally, a number of functions now operate on values of the sum type
      PackageDescription.Component rather than specifically operating on Library or
      Executable and so forth.
      2e348126
  19. 16 Aug, 2009 1 commit
    • Thomas Schilling's avatar
      Add --html for haddock command. · 309c4efb
      Thomas Schilling authored
      This makes it easier to build both html documentation and a hoogle
      database:
      
        ./setup haddock [--html]   # build only HTML docs (default)
        ./setup haddock --hoogle   # build only Hoogle DB
        ./setup haddock --hoogle --html   # build both
      309c4efb
  20. 25 Oct, 2010 1 commit
  21. 18 Oct, 2010 1 commit
    • Duncan Coutts's avatar
      Add new language and extensions fields (internal data structures) · 7a8c60d0
      Duncan Coutts authored
      New fields default-language and other-languages for specifying the
      base languages for the package, e.g. Haskell98, Haskell2010
      New fields default-extensions and other-extensions for the language
      extensions. Separate from the old extensions field.
      The separation lets us express the difference between declaring to
      the outside world that a package uses certain languages or extensions
      and whether certain languages or extensions should be applied to
      all modules in the package component.
      7a8c60d0
  22. 23 Jun, 2010 1 commit
  23. 11 Apr, 2010 1 commit
  24. 08 Apr, 2010 1 commit
    • Duncan Coutts's avatar
      Workaround the fact that haddock stomps on our precious .hi and .o files · 796d34b4
      Duncan Coutts authored
      When using "haddock --optghc-XTemplateHaskell" haddock will write out .o
      and .hi files. This is bad because it replaces the ones we previously
      built. This results in broken packages later on. Of course haddock
      should not do this, it should write temp files elsewhere. The workaround
      is to tell haddock to write the files to a temp dir.
      796d34b4
  25. 30 Dec, 2009 1 commit
  26. 05 Oct, 2009 2 commits
    • Duncan Coutts's avatar
      Stop converting between installed package id and source package id · 7f9ad6bc
      Duncan Coutts authored
      In the LocalBuildInfo, for each component, for the list of component
      dependencies, keep both the InstalledPackageId and the PackageId.
      That way we don't need to keep converting the InstalledPackageId
      to the PackageId, via the package index (which is just horrible).
      7f9ad6bc
    • Duncan Coutts's avatar
      Rewrite the PackageIndex again · 15f70a85
      Duncan Coutts authored
      It's a unified index again, rather than one for looking up by an
      InstalledPackageId and one for the source PackageId. The new one
      lets you look up by either. It also maintains the order of
      preference of different installed packages that share the same
      source PackageId. In configure we just pick the first preference.
      15f70a85
  27. 06 Aug, 2009 1 commit
  28. 05 Jul, 2009 1 commit
  29. 01 Jun, 2009 1 commit
    • Duncan Coutts's avatar
      Split requireProgram into two different functions · 05d3ca2b
      Duncan Coutts authored
      Now requireProgram doesn't take a version range and does not check
      the program version (indeed it doesn't need to have one). The new
      function requireProgramVersion takes a required program version
      range and returns the program version. Also update callers.
      Also fixes the check that GHC has a version number.
      05d3ca2b
  30. 28 May, 2009 1 commit
  31. 27 May, 2009 2 commits
  32. 22 Apr, 2009 1 commit
  33. 02 Mar, 2009 1 commit
  34. 19 Feb, 2009 1 commit
    • Saizan's avatar
      rewrite of Distribution.Simple.Haddock · cef898e2
      Saizan authored
      In addition to (hopefully) making clear what's going on
      we now do the additional preprocessing for all the versions of haddock 
      (but not for hscolour) and we run cpp before moving the files.
      cef898e2
  35. 01 Feb, 2009 1 commit