Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Jan 31, 2008
    • Duncan Coutts's avatar
      Use Setup.hs like everyone else does · 08cc3c88
      Duncan Coutts authored
      and note the issue about custom vs simple build-type for Cabal itself.
      08cc3c88
    • Duncan Coutts's avatar
      Improve the QA messages a bit, use the same style as the sanity check messages · ee8eedbe
      Duncan Coutts authored
      Slightly more like full sentances and using '' quotes for field names etc.
      ee8eedbe
    • Duncan Coutts's avatar
      Find original sources for main-is when creating sdist · b61cb051
      Duncan Coutts authored
      Also add a package sanity check that main-is must specify a .hs or .lhs file.
      So the bahaviour is now that main-is specifies the main source file, even if
      that is generated by a pre-processor. This isn't really a change in behaviour
      since previously if you specified main-is: main.hsc then it would try to
      pass the .hsc file to ghc dirctly which would not work. For ticket #14 things
      were fixed to that it would look for main.hsc if you used main-is: main.hs an
      that file did not exist directy. This completes the other half, of actually
      being able to make a src distribution. So this should fix bug #217.
      Note that this still needs some work, we do not run platform-independent
      preprocessors and put the result into the tarball for main-is files.
      Generally, main-is has been the second class citizen compared to normal
      modules. We should try and refactor so both use the same code paths.
      b61cb051
    • Duncan Coutts's avatar
      Eliminate now-redundant Bool flag on smartCopySources · 58c9693a
      Duncan Coutts authored
      and simplfy the implementation to be a simple composition of
      findFileWithExtension' and copyFiles with some additonal error checking.
      58c9693a
    • Duncan Coutts's avatar
      Stop using smartCopySources in SrcDist · 2edfa269
      Duncan Coutts authored
      This was the old module using it in with preserveDirs = True.
      Anyway, we should be using smartCopySources for each lib and exe, we should be
      collecting all the files to copy together into one list, then eliminating
      duplicates and doing a single copyFiles operation. Yes, there can be
      duplicates because for example exes can specify the libbrary's modules or 
      even the other exe's main module as other-modules.
      2edfa269
    • Duncan Coutts's avatar
      findPackageDesc has to return a relative path for SrcDist · 1bee68ef
      Duncan Coutts authored
      otherwise we fail to copy the .cabal file when into the src tree
      1bee68ef
  2. Jan 30, 2008
  3. Jan 29, 2008
  4. Dec 30, 2007
  5. Dec 04, 2007
  6. Jan 30, 2008
  7. Jan 29, 2008
  8. Jan 27, 2008
  9. Jan 13, 2008
  10. Jan 29, 2008
  11. Jan 28, 2008
  12. Jan 27, 2008
  13. Jan 26, 2008
  14. Jan 27, 2008
  15. Jan 26, 2008
  16. Jan 25, 2008
  17. Sep 20, 2007
  18. Jan 24, 2008
  19. Jan 25, 2008
  20. Jan 24, 2008
  21. Jan 23, 2008
    • Duncan Coutts's avatar
      Rework withTempFile code and use System.IO.openTempFile where available · 2e78aebe
      Duncan Coutts authored
      The System.IO.openTempFile is much better because it opens the temp files
      securely. Howver it is only available in base-2 and only of GHC. In base-3
      it is available for all implementations. So in practice that means it's only
      for GHC and we have to use our compatability implementation for hugs and
      nhc98. Not sure of the status for jhc.
      2e78aebe
Loading