Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Apr 06, 2024
  2. Oct 26, 2023
  3. Jan 14, 2023
  4. Dec 28, 2022
  5. Aug 11, 2022
  6. May 19, 2022
  7. May 16, 2022
  8. May 02, 2022
  9. Apr 13, 2022
  10. Feb 25, 2022
  11. Aug 14, 2021
    • Niklas Hambüchen's avatar
      Add field to to remember libs needed for fully static linking · bf32602d
      Niklas Hambüchen authored and Alex Biehl's avatar Alex Biehl committed
      * WIP: Still need to update ghc to use the new `libraryDirsStatic` and
             `extraLibrariesStatic` fields in `InstalledPackageInfo` for linking.
      * WIP: Adding -L paths to .a libs in .conf files will likely increase nix
             closure size for dynamically linked Haskell packages because if pkg-config
             finds an `-a` file, the path to it will be remembered.
             (That only has an impact if the .a file is in a split-output from the .so file.)
             Perhaps we make the feature that `pkg-config --static` is called
             opt-outable.
             On the other hand Haskell libs always carry their .a files, so pulling
             a few system `.a` files more shouldn't make much of a difference.
             So this opt-out should probably be an extra feature for later, if at all.
      bf32602d
  12. Feb 28, 2021
  13. Sep 27, 2020
  14. Sep 24, 2020
    • Simon Marlow's avatar
      Add hsc2hs-options · 64f0b043
      Simon Marlow authored and Oleg Grenrus's avatar Oleg Grenrus committed
      Motivation: I (simonmar) want to use hsc2hs with C++, which requires
      
      ```
      hsc2hs-options: --cc=g++ --lflag=-lstdc++
      ```
      
      We pass `hsc2hs-options` before or after `--cc` and `-lflag`,
      depending on the version of `hsc2hs`.
      
      I (phadej) added a tests:
      - hsc2hs-options are passed to `hsc2hs` (but not to GHC e.g.).
      - `--cc` has expected effect
      
      `g++` tests doesn't seem to work on Windows, due mingw ncurses linkage
      issue, https://github.com/msys2/MINGW-packages/issues/3531
      We also need non-ancient hsc2hs (>= 0.68).
      64f0b043
  15. Jul 21, 2020
  16. Jul 16, 2020
  17. Jul 12, 2020
  18. Jul 08, 2020
  19. Jun 27, 2020
  20. Jun 23, 2020
    • Oleg Grenrus's avatar
      Resolve #6288 · e42e5462
      Oleg Grenrus authored
      - Add availableSince to language/extension fields
         - Also autogen-modules once we are on that.
      - Remove default-language check for cabal-version: 3.4
      
      We cannot make the field `uniqueFieldAlaDef`, as that would require
      specifying `default-language` in each subconditional.
      I leave it for https://github.com/haskell/cabal/issues/6925
      
      Note: the default language is whatever is the compiler's default.
      The GHC-8.10 default is its variant of Haskell2010
      with NondecreasingIndentation and without DatatypeContexts
      e42e5462
  21. Jun 21, 2020
  22. May 12, 2020
  23. Apr 06, 2020
  24. Dec 11, 2019
  25. Nov 27, 2019
    • Herbert Valerio Riedel's avatar
      Implement {cmm.asm}-{options,sources} for real · a41ce05a
      Herbert Valerio Riedel authored and Oleg Grenrus's avatar Oleg Grenrus committed
      While those buildinfo fields were added to the parser some time
      ago via 57d7f28e and
      4a287659 that work was never completed
      by implementing the necessary build/sdist logic in Cabal.
      
      This commit remedies this oversight by implementing and wiring up the
      missing build logic.
      
      *WARNING* this commit is still very WIP; ASM works mostly; C--
                support is still incomplete
      a41ce05a
  26. Aug 14, 2019
  27. Aug 01, 2019
  28. May 08, 2019
    • Oleg Grenrus's avatar
      Add autogen-includes field · 7e27ae7c
      Oleg Grenrus authored
      autogen-includes aren't searched nor packages by `sdist`.
      
      This is relatively small code patch, but there are
      - change in file-format
      - short documentation of the field
      - `cabal check`
      - test-suite noise due new field in `BuildInfo`
      7e27ae7c
  29. Apr 04, 2019
    • Oleg Grenrus's avatar
      Implement #5971. Free text fields preserve indentation · e4298a3c
      Oleg Grenrus authored
      Starting with `cabal-version: 3.0` free text fields
      preserve indentation and blank lines.
      In other words, we don't need single dots to indicate blank line.
      
      IPI is not versioned. So we default to latest variant always.
      This is little harm, as old GHC use old Cabal to print
      IPIs. And free text fields are only informative.
      
      Fixes #5938
      e4298a3c
  30. Apr 03, 2019
  31. Mar 03, 2019
  32. Mar 02, 2019
  33. Jan 25, 2019
  34. Dec 04, 2018
  35. Dec 03, 2018
    • Oleg Grenrus's avatar
      Remove fields in cabal spec 3.0 · 0d6343ac
      Oleg Grenrus authored
      - extensions
      - (singular) hs-source-dir
      - build-tools
      
      Example, with `cabal-version: 2.5`
      
      ```
      [laptop] tree-diff % cabal new-build --dry
      Errors encountered when parsing cabal file ./tree-diff.cabal:
      
      tree-diff.cabal:59:3: error:
      The field "extensions" is removed in the Cabal specification version 2.5. Please use 'default-extensions' or 'other-extensions' fields.
      
         58 | library
         59 |   extensions: CPP
            |   ^
      
      tree-diff.cabal:60:3: error:
      The field "extensions" is removed in the Cabal specification version 2.5. Please use 'default-extensions' or 'other-extensions' fields.
      
         59 |   extensions: CPP
         60 |   extensions: DeriveGeneric
            |   ^
      ```
      
      I needed to add new CabalSpecVersion to properly issue deprecation
      messages of `extensions`.
      0d6343ac
  36. Nov 25, 2018
  37. Nov 24, 2018
Loading