X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc-prim.cabal;h=9de5b03024bf883372d5c5bfa5b10e3f0487412a;hb=49d560213f818de8ed7713ed9c3bf2ed210b076a;hp=098359856e8d093c7e5860a1ddf660159217dc06;hpb=76c57ed48607324ec4a89b55f29a47be980fb2c0;p=ghc-prim.git diff --git a/ghc-prim.cabal b/ghc-prim.cabal index 0983598..9de5b03 100644 --- a/ghc-prim.cabal +++ b/ghc-prim.cabal @@ -1,26 +1,47 @@ name: ghc-prim -version: 0.1 +version: 0.2.0.0 license: BSD3 license-file: LICENSE maintainer: libraries@haskell.org +bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries%20%28other%29 synopsis: GHC primitives description: GHC primitives. -cabal-version: >=1.2 +cabal-version: >=1.6 build-type: Custom +source-repository head + type: darcs + location: http://darcs.haskell.org/packages/ghc-prim/ + +flag include-ghc-prim { + Description: Include GHC.Prim in exposed-modules + default: False +} + Library { + build-depends: rts exposed-modules: - GHC.Bool + GHC.Debug GHC.Generics + GHC.Magic GHC.Ordering GHC.PrimopWrappers GHC.IntWord32 GHC.IntWord64 + GHC.Tuple + GHC.Types GHC.Unit + + if flag(include-ghc-prim) { + exposed-modules: GHC.Prim + } + c-sources: + cbits/debug.c cbits/longlong.c - extensions: CPP, MagicHash, ForeignFunctionInterface, UnliftedFFITypes + extensions: CPP, MagicHash, ForeignFunctionInterface, UnliftedFFITypes, + UnboxedTuples, EmptyDataDecls, NoImplicitPrelude -- We need to set the package name to ghc-prim (without a version number) -- as it's magic. ghc-options: -package-name ghc-prim