summaryrefslogtreecommitdiff
path: root/libraries/ghc-prim/ghc-prim.cabal
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2017-11-16 22:54:11 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2017-11-18 11:06:45 +0800
commit835d8ddbbfb11796ea8a03d1806b7cee38ba17a6 (patch)
tree61e7681171e65484e647fc2ddde97bd450051931 /libraries/ghc-prim/ghc-prim.cabal
parent12a7444463184e9eddbe7b7251a0ee1e976f4d75 (diff)
downloadhaskell-835d8ddbbfb11796ea8a03d1806b7cee38ba17a6.tar.gz
GHC.Prim use virtual-modules
Stop the GHC.Prim madness with `virtual-module` support from cabal. Needs https://github.com/haskell/cabal/pull/4875. Bumps submodule libraries/Cabal to include the necessary logic for `virtual-module`. Reviewers: bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D4179
Diffstat (limited to 'libraries/ghc-prim/ghc-prim.cabal')
-rw-r--r--libraries/ghc-prim/ghc-prim.cabal12
1 files changed, 4 insertions, 8 deletions
diff --git a/libraries/ghc-prim/ghc-prim.cabal b/libraries/ghc-prim/ghc-prim.cabal
index ca50808469..9b8c1ac196 100644
--- a/libraries/ghc-prim/ghc-prim.cabal
+++ b/libraries/ghc-prim/ghc-prim.cabal
@@ -1,3 +1,4 @@
+cabal-version: 2.1
name: ghc-prim
version: 0.5.2.0
-- NOTE: Don't forget to update ./changelog.md
@@ -7,7 +8,6 @@ category: GHC
maintainer: libraries@haskell.org
bug-reports: http://ghc.haskell.org/trac/ghc/newticket?component=libraries%20%28other%29&keywords=ghc-prim
synopsis: GHC primitives
-cabal-version: >=1.10
build-type: Custom
description:
This package contains the primitive types and operations supplied by GHC.
@@ -19,10 +19,6 @@ source-repository head
location: http://git.haskell.org/ghc.git
subdir: libraries/ghc-prim
-flag include-ghc-prim
- Description: Include GHC.Prim in exposed-modules
- default: False
-
custom-setup
setup-depends: base >= 4 && < 5, Cabal >= 1.23
@@ -53,6 +49,9 @@ Library
GHC.Tuple
GHC.Types
+ virtual-modules:
+ GHC.Prim
+
-- OS Specific
if os(windows)
-- Windows requires some extra libraries for linking because the RTS
@@ -67,9 +66,6 @@ Library
-- on Windows. Required because of mingw32.
extra-libraries: user32, mingw32, mingwex
- if flag(include-ghc-prim)
- exposed-modules: GHC.Prim
-
c-sources:
cbits/atomic.c
cbits/bswap.c