Package keys (for linking/type equality) separated from package IDs.
[ghc.git] / libraries / ghc-prim / ghc-prim.cabal
1 name:           ghc-prim
2 version:        0.3.1.0
3 -- GHC 7.6.1 released with 0.3.0.0
4 license:        BSD3
5 license-file:   LICENSE
6 category:       GHC
7 maintainer:     libraries@haskell.org
8 bug-reports:    http://ghc.haskell.org/trac/ghc/newticket?component=libraries%20%28other%29&keywords=ghc-prim
9 synopsis:       GHC primitives
10 cabal-version:  >=1.10
11 build-type:     Custom
12 description:
13     GHC primitives.
14
15 source-repository head
16     type:     git
17     location: http://git.haskell.org/ghc.git
18     subdir:   libraries/ghc-prim
19
20 flag include-ghc-prim
21     Description: Include GHC.Prim in exposed-modules
22     default: False
23
24 Library
25     default-language: Haskell2010
26     other-extensions:
27         BangPatterns
28         CPP
29         DeriveGeneric
30         MagicHash
31         MultiParamTypeClasses
32         NoImplicitPrelude
33         StandaloneDeriving
34         Trustworthy
35         TypeFamilies
36         UnboxedTuples
37         UnliftedFFITypes
38
39     build-depends: rts == 1.0.*
40
41     exposed-modules:
42         GHC.CString
43         GHC.Classes
44         GHC.Debug
45         GHC.IntWord64
46         GHC.Magic
47         GHC.PrimopWrappers
48         GHC.Tuple
49         GHC.Types
50
51     if flag(include-ghc-prim)
52         exposed-modules: GHC.Prim
53
54     c-sources:
55         cbits/atomic.c
56         cbits/bswap.c
57         cbits/debug.c
58         cbits/longlong.c
59         cbits/popcnt.c
60         cbits/word2float.c
61
62     -- We need to set the package key to ghc-prim (without a version number)
63     -- as it's magic.
64     ghc-options: -this-package-key ghc-prim