~ubuntu-branches/ubuntu/precise/ghc/precise

« back to all changes in this revision

Viewing changes to libraries/ghc-prim/ghc-prim.cabal

  • Committer: Bazaar Package Importer
  • Author(s): Joachim Breitner
  • Date: 2011-01-17 12:49:24 UTC
  • Revision ID: james.westby@ubuntu.com-20110117124924-do1pym1jlf5o636m
Tags: upstream-7.0.1
ImportĀ upstreamĀ versionĀ 7.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}