Bump ghc-prim version to 0.5.0.0 (closes #11043)
[ghc.git] / libraries / ghc-prim / ghc-prim.cabal
1 name:           ghc-prim
2 version:        0.5.0.0
3 -- NOTE: Don't forget to update ./changelog.md
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 extra-source-files: changelog.md
16
17 source-repository head
18     type:     git
19     location: http://git.haskell.org/ghc.git
20     subdir:   libraries/ghc-prim
21
22 flag include-ghc-prim
23     Description: Include GHC.Prim in exposed-modules
24     default: False
25
26 custom-setup
27     setup-depends: base >= 4 && < 5, Cabal >= 1.23
28
29 Library
30     default-language: Haskell2010
31     other-extensions:
32         BangPatterns
33         CPP
34         DeriveGeneric
35         MagicHash
36         MultiParamTypeClasses
37         NoImplicitPrelude
38         StandaloneDeriving
39         Trustworthy
40         TypeFamilies
41         UnboxedTuples
42         UnliftedFFITypes
43
44     build-depends: rts == 1.0.*
45
46     exposed-modules:
47         GHC.CString
48         GHC.Classes
49         GHC.Debug
50         GHC.IntWord64
51         GHC.Magic
52         GHC.PrimopWrappers
53         GHC.Tuple
54         GHC.Types
55
56     if flag(include-ghc-prim)
57         exposed-modules: GHC.Prim
58
59     c-sources:
60         cbits/atomic.c
61         cbits/bswap.c
62         cbits/clz.c
63         cbits/ctz.c
64         cbits/debug.c
65         cbits/longlong.c
66         cbits/popcnt.c
67         cbits/word2float.c
68
69     -- We need to set the unit ID to ghc-prim (without a version number)
70     -- as it's magic.
71     ghc-options: -this-package-key ghc-prim