Add new GHC.Magic module
[ghc-prim.git] / ghc-prim.cabal
1 name:           ghc-prim
2 version:        0.2.0.0
3 license:        BSD3
4 license-file:   LICENSE
5 maintainer:     libraries@haskell.org
6 bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries%20%28other%29
7 synopsis:       GHC primitives
8 description:
9     GHC primitives.
10 cabal-version:  >=1.6
11 build-type: Custom
12
13 source-repository head
14     type:     darcs
15     location: http://darcs.haskell.org/packages/ghc-prim/
16
17 flag include-ghc-prim {
18     Description: Include GHC.Prim in exposed-modules
19     default: False
20 }
21
22 Library {
23     build-depends: rts
24     exposed-modules:
25         GHC.Bool
26         GHC.Debug
27         GHC.Generics
28         GHC.Magic
29         GHC.Ordering
30         GHC.PrimopWrappers
31         GHC.IntWord32
32         GHC.IntWord64
33         GHC.Tuple
34         GHC.Types
35         GHC.Unit
36
37     if flag(include-ghc-prim) {
38         exposed-modules: GHC.Prim
39     }
40
41     c-sources:
42         cbits/debug.c
43         cbits/longlong.c
44     extensions: CPP, MagicHash, ForeignFunctionInterface, UnliftedFFITypes,
45                 UnboxedTuples, EmptyDataDecls, NoImplicitPrelude
46     -- We need to set the package name to ghc-prim (without a version number)
47     -- as it's magic.
48     ghc-options: -package-name ghc-prim
49 }