name: ghc-prim version: 0.5.0.0 -- NOTE: Don't forget to update ./changelog.md license: BSD3 license-file: LICENSE category: GHC maintainer: libraries@haskell.org bug-reports: http://ghc.haskell.org/trac/ghc/newticket?component=libraries%20%28other%29&keywords=ghc-prim synopsis: GHC primitives cabal-version: >=1.10 build-type: Simple description: This package contains the primitive types and operations supplied by GHC. extra-source-files: changelog.md source-repository head type: git location: http://git.haskell.org/ghc.git subdir: libraries/ghc-prim flag include-ghc-prim Description: Include GHC.Prim in exposed-modules default: False Library default-language: Haskell2010 other-extensions: BangPatterns CPP DeriveGeneric MagicHash MultiParamTypeClasses NoImplicitPrelude StandaloneDeriving Trustworthy TypeFamilies UnboxedTuples UnliftedFFITypes build-depends: rts == 1.0.* exposed-modules: GHC.CString GHC.Classes GHC.Debug GHC.IntWord64 GHC.Magic GHC.PrimopWrappers GHC.Tuple GHC.Types -- OS Specific if os(windows) -- Windows requires some extra libraries for linking because the RTS -- is no longer re-exporting them (see #11223) -- msvcrt: standard C library. The RTS will automatically include this, -- but is added for completeness. -- mingwex: provides C99 compatibility. libm is a stub on MingW. -- mingw32: Unfortunately required because of a resource leak between -- mingwex and mingw32. the __math_err symbol is defined in -- mingw32 which is required by mingwex. -- user32: provides access to apis to modify user components (UI etc) -- on Windows. Required because of mingw32. extra-libraries: user32, mingw32, mingwex if flag(include-ghc-prim) exposed-modules: GHC.Prim c-sources: cbits/atomic.c cbits/bswap.c cbits/clz.c cbits/ctz.c cbits/debug.c cbits/longlong.c cbits/popcnt.c cbits/word2float.c -- We need to set the unit ID to ghc-prim (without a version number) -- as it's magic. ghc-options: -this-unit-id ghc-prim