Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Sep 13, 2020
  2. Sep 03, 2020
  3. Jul 15, 2020
  4. Jun 27, 2020
  5. Jun 24, 2020
    • Luke Lau's avatar
      Fix ghci being launched before other sources were built · e3d26087
      Luke Lau authored
      This looks like an accident from a6e427ac
      It causes cases like this to fail:
      
      $ cat foo.c
      int foo() { return 42; }
      $ cat Lib.hs
      module Lib where
      
      foreign import ccall "foo" foo :: Int
      
      bar = foo
      $ cat cabal-csrc-repl.cabal
      cabal-version:      2.4
      name:               cabal-csrc-repl
      version:            0.1.0.0
      library
          exposed-modules:  Lib
          build-depends:    base ^>=4.14.0.0
          C-sources:        foo.c
          default-language: Haskell2010
      $ cabal v2-repl
      Resolving dependencies...
      Build profile: -w ghc-8.10.1 -O1
      In order, the following will be built (use -v for more details):
       - cabal-csrc-repl-0.1.0.0 (lib) (first run)
      Configuring library for cabal-csrc-repl-0.1.0.0..
      Preprocessing library for cabal-csrc-repl-0.1.0.0..
      GHCi, version 8.10.1: https://www.haskell.org/ghc/  :? for help
      [1 of 1] Compiling Lib              ( Lib.hs, interpreted )
      Ok, one module loaded.
      *Lib> foo
      ghc: ^^ Could not load '_foo', dependency unresolved. See top entry above.
      e3d26087
  6. 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
  7. Jun 18, 2020
  8. Jun 16, 2020
  9. Jun 12, 2020
  10. Jun 06, 2020
  11. Jun 03, 2020
  12. May 29, 2020
  13. May 24, 2020
  14. May 23, 2020
    • Francesco Gazzetta's avatar
      Override Cabal's library visibility check on GHC <8.8 · 19f5aabd
      Francesco Gazzetta authored
      GHC <8.8 isn't able to read the "visibility" field from the package
      database, since it's built against an older Cabal. For this reason,
      using multiple public libraries with it did not work (all sublibraries
      appeared as private).
      
      This patch makes cabal-install override Cabal's library visibility
      checks when GHC is older than 8.8, extending the multiple libraries
      feature compatibiliy to older GHCs.
      19f5aabd
  15. May 22, 2020
  16. May 15, 2020
  17. May 14, 2020
  18. May 06, 2020
    • Oleg Grenrus's avatar
      Remove sandboxes. · 6248c742
      Oleg Grenrus authored
      Removes command and cleanups cabal-testsuite.
      The tests for #3199 #4099 #3436 are removed, but they seem to be
      sandbox specific issues.
      
      Removes Sandbox.Types, Sandbox.Index and Sandbox.Timestamp modules.
      The Sandbox and Sandbox.PackageEnvironment are still
      there as some configuration in v1-commands happens through them
      (~/.cabal/config vs ./cabal.config).
      
      BuildExFlags contained only sandbox specific parameter,
      so it's removed as well.
      
      Remove sandbox support from cabal-testsuite
      Remove sandbox from GlobalFlags and Sandbox unit-tests
      6248c742
  19. Apr 27, 2020
    • Oleg Grenrus's avatar
      Remove AnyVersion and WildcardVersion constructors · df0abdf9
      Oleg Grenrus authored
      These constructors don't carry any additional semantics.
      They were used in `cabal check` implementation, but now already parser
      reports errors so we don't need these redundant constructors anymore.
      
      MajorBoundVersion (^>=) has slightly different semantics:
      we want be able to relax only `^>= x.y.z` upper bounds.
      Therefore it's preserved.
      df0abdf9
  20. Apr 13, 2020
  21. Apr 07, 2020
  22. Apr 04, 2020
  23. Apr 03, 2020
    • Oleg Grenrus's avatar
      setupAndCabalTest uses cabal act-as-setup for cabal part · ab355361
      Oleg Grenrus authored
      The cabal command interface will drift more and more from
      ./Setup interface. This is first step: don't assume
      they are the same.
      
      This removes need to "patch" setup commands to work with cabal:
      the `act-as-setup` SHOULD behave as (simple) ./Setup
      
      There were few setupAndCabalTests which weren't `build-type: Simple`.
      For those I made a separate `cabal.test.hs`.
      
      Also added a OutputNormalizer for global tmp directory.
      `v2-build` sdists `build-type: Custom` packages to get the list of files
      to watch. I guess it's ok to have that functionality,
      yet it could be eventually removed, as `v2-sdist`
      does not invoke `./Setup.hs` script.
      ab355361
  24. Apr 02, 2020
  25. Mar 22, 2020
  26. Feb 20, 2020
  27. Feb 14, 2020
  28. Feb 12, 2020
  29. Jan 21, 2020
  30. Jan 20, 2020
  31. Jan 05, 2020
  32. Dec 25, 2019
  33. Dec 20, 2019
Loading