Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Nov 27, 2017
  2. Nov 26, 2017
  3. Nov 25, 2017
  4. Nov 22, 2017
  5. Nov 20, 2017
    • Herbert Valerio Riedel's avatar
      Tweak/modernise a few .cabal examples in the user's guide · 95cd4eb9
      Herbert Valerio Riedel authored
      Examples which used the ancient spec-version v1.2 have been updated to
      use at least v1.8; and use CPP-Options instead of GHC-Options where
      `cabal check` would have warned; avoid automatic flags for features;
      also be explicit about the `build-type:` to avoid the implicit `Custom`
      default (TODO: we should really change the default with a future
      spec-version to `Simple`)
      
      [skip ci]
      95cd4eb9
  6. Nov 19, 2017
    • Mikhail Glushenkov's avatar
      Merge pull request #4897 from haskell/angerman-bundled-lib-order · 21efd0b5
      Mikhail Glushenkov authored
      Change order of hsLibraries
      21efd0b5
    • Moritz Angermann's avatar
      Change order of hsLibraries · 15914720
      Moritz Angermann authored
      After using this for a while. It occured to me that due to linker ordering, and GHC just forwarding the libraries as specified in the `hsLibraries` field, we should put the `extraBundledLibs` at the end. As such the haskell library can reference the `extraBundledLibs`.
      
      This still leave the question of recursively linked libs. But getting that linked right should rather be deal with in GHC, which optimally would use being and end groups for the libraries to link.
      15914720
  7. Nov 17, 2017
  8. Nov 16, 2017
  9. Nov 15, 2017
  10. Nov 12, 2017
  11. Nov 11, 2017
  12. Nov 10, 2017
    • Moritz Angermann's avatar
      Make ExposedModules out of ModuleNames · 62bc64dd
      Moritz Angermann authored
      62bc64dd
    • Moritz Angermann's avatar
      Adds `virtual-modules`. · 3623270d
      Moritz Angermann authored
      GHC's `ghc-prim` package has an `exposed-module` for which there exists no source code. As such it can't be built and has no interface file.  With the goal of getting rid of hacks in GHC `ghc-prim`s cabal file, which does the following:
      
      ```
      flag include-ghc-prim
          Description: Include GHC.Prim in exposed-modules
          default: False
      [...]
          if flag(include-ghc-prim)
              exposed-modules: GHC.Prim
      ```
      
      and has this explaination in the build system:
      
      ```
      # ----------------------------------------
      # Special magic for the ghc-prim package
      
      # We want the ghc-prim package to include the GHC.Prim module when it
      # is registered, but not when it is built, because GHC.Prim is not a
      # real source module, it is built-in to GHC.  The old build system did
      # this using Setup.hs, but we can't do that here, so we have a flag to
      # enable GHC.Prim in the .cabal file (so that the ghc-prim package
      # remains compatible with the old build system for the time being).
      # GHC.Prim module in the ghc-prim package with a flag:
      #
      libraries/ghc-prim_CONFIGURE_OPTS += --flag=include-ghc-prim
      
      # And then we strip it out again before building the package:
      define libraries/ghc-prim_PACKAGE_MAGIC
      libraries/ghc-prim_dist-install_MODULES := $$(filter-out GHC.Prim,$$(libraries/ghc-prim_dist-install_MODULES))
      endef
      ```
      
      The addition of the `virtual-modules` has thus the effect of a module that is assumed to exist
      but not tried to be built or listed in any of the module files.  It is however part of the
      `exposed-modules` when registered into the package database
      3623270d
  13. Nov 09, 2017
  14. Nov 08, 2017
Loading