This project is mirrored from Pull mirroring updated .
  1. 15 Aug, 2014 1 commit
  2. 04 Aug, 2014 1 commit
  3. 10 May, 2014 4 commits
    • Iain Nicol's avatar
      Fix: "cabal haddock" uses CPP overzealously · ba4ae3d0
      Iain Nicol authored
      Until recently we supported ancient versions of Haddock, pre v2.0.  To
      support the CPP extension with such versions, cabal had to invoke the
      CPP before invoking Haddock on the output.  For simplicity cabal would
      invoke the CPP on all Haskell files, if any Haskell file required CPP.
      However, invoking CPP on a file which does not require it can cause
      build failures.
      Haddock v2.0+ supports the CPP via GHC, and even automatically
      preprocesses any file with the {-# LANGUAGE CPP #-} pragma. Hence we
      simply need only tell Haddock to enable the CPP when the CPP is a
      package level default extension.
      Fixes issue #1808.
    • Iain Nicol's avatar
      Use Haddock's builtin support for .lhs and CPP · 5729bc5c
      Iain Nicol authored
      This is a code simplification on our end.
      Thanks to Mikhail Glushenkov for the suggestion.
    • Iain Nicol's avatar
      Remove support for Haddock versions < 2.0 · 98c537f1
      Iain Nicol authored
      Dropping this support is unlikely to be a problem in practice.  Debian
      oldstable is currently on version 2.6.0 of Haddock, for example.
      This change enables future code simplification.  Currently we
      preprocess both Haskell files requiring the CPP and Literate Haskell
      files; newer versions of Haddock can handle these natively.
      Fixes issue #1718.
    • Iain Nicol's avatar
  4. 14 Apr, 2014 1 commit
  5. 21 Mar, 2014 1 commit
  6. 10 Mar, 2014 2 commits
  7. 09 Mar, 2014 1 commit
  8. 02 Feb, 2014 4 commits
  9. 02 Dec, 2013 1 commit
    • Duncan Coutts's avatar
      Fix the haddock --html-location= for relative URLs · 32dddcb1
      Duncan Coutts authored
      The previous fix in isue #1407 turned out to be in the wrong place and
      so applied to both the haddock-html from the ghc-pkg output, and also to
      the location passed via the --html-location flag. For the
      --html-location flag it is important that we can use relative URLs like
      /package/$pkg-$version/docs because that is what we need for hackage.
      Note that that is a relative URL, it's relative to the server root.
      However that was being interpreted as a local file path and being given
      the file:// prefix. So now we move the file:// URL stuff to the right
      place so it only applies to the location given in the haddock-html field
      of the package registration.
  10. 31 Oct, 2013 1 commit
  11. 16 Oct, 2013 1 commit
  12. 02 Sep, 2013 1 commit
  13. 21 Aug, 2013 1 commit
  14. 12 Aug, 2013 1 commit
    • Duncan Coutts's avatar
      Add some more recent GhcOptions · f6f12fe0
      Duncan Coutts authored
      Add support for:
       -dynamic-too  (now a three-way choice with -static & -dynamic)
       -dynhisuf -dynosuf
      All the options we use internally should have their own flags. We should
      really only be using ghcOptExtra for things from the user.
  15. 01 Aug, 2013 1 commit
  16. 17 Jul, 2013 1 commit
  17. 13 Jun, 2013 1 commit
  18. 02 May, 2013 1 commit
  19. 15 Mar, 2013 1 commit
  20. 05 Mar, 2013 2 commits
  21. 03 Mar, 2013 1 commit
  22. 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.
  23. 06 Feb, 2013 1 commit
  24. 23 Jan, 2013 1 commit
  25. 16 Jan, 2013 1 commit
  26. 14 Jan, 2013 2 commits
    • John Wiegley's avatar
      A few more code simplifications · 2ff85140
      John Wiegley authored
    • 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:
      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:
      Fixes #1167
  27. 26 Nov, 2012 1 commit
  28. 08 Nov, 2012 3 commits
  29. 20 Jun, 2012 1 commit