Update source-repository in the .cabal file to point to the git repo
[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:     git
15     location: http://darcs.haskell.org/packages/ghc-prim.git/
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.Debug
26         GHC.Generics
27         GHC.Magic
28         GHC.Ordering
29         GHC.PrimopWrappers
30         GHC.IntWord32
31         GHC.IntWord64
32         GHC.Tuple
33         GHC.Types
34         GHC.Unit
35
36     if flag(include-ghc-prim) {
37         exposed-modules: GHC.Prim
38     }
39
40     c-sources:
41         cbits/debug.c
42         cbits/longlong.c
43     extensions: CPP, MagicHash, ForeignFunctionInterface, UnliftedFFITypes,
44                 UnboxedTuples, EmptyDataDecls, NoImplicitPrelude
45     -- We need to set the package name to ghc-prim (without a version number)
46     -- as it's magic.
47     ghc-options: -package-name ghc-prim
48 }