This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 16 Nov, 2017 1 commit
  2. 15 Nov, 2017 7 commits
  3. 12 Nov, 2017 2 commits
  4. 11 Nov, 2017 1 commit
  5. 10 Nov, 2017 2 commits
    • 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
  6. 09 Nov, 2017 3 commits
  7. 08 Nov, 2017 3 commits
  8. 07 Nov, 2017 2 commits
  9. 04 Nov, 2017 1 commit
  10. 03 Nov, 2017 13 commits
  11. 02 Nov, 2017 5 commits