Commits on Mar 22, 2014
  1. Make argument types in popcnt.c match declared primop types

    On 64-bit Mac OS, gcc 4.2 (which comes with Xcode 4.6) generates code
    that assumes that an argument that is smaller than the register
    it is passed in has been sign- or zero-extended. But ghc thinks
    the types of the PopCnt*Op primops are Word# -> Word#, so it passes
    the entire argument word to the hs_popcnt* function as though it was
    declared to have an argument of type StgWord. Segfaults ensue.
    The easiest fix is to sidestep all this zero-extension business
    by declaring the hs_popcnt* functions to take a whole StgWord (when their
    argument would fit in a register), thereby matching the list of primops.
    Fixes #7684.
    rwbarton committed with tibbe Sep 6, 2013
Commits on Mar 16, 2014
Commits on Mar 14, 2014
  1. Refer to the coercible paper in Coercible' docs

    Implements parts of #8888.
    nomeata committed Mar 14, 2014
  2. Update Coercible docs due to Safe Haskell adjustment

    This should go with [59722295bb8da8f01d37356fbed6aef7321a8195/ghc], see
    bug #8826.
    nomeata committed Mar 14, 2014
Commits on Mar 1, 2014
  1. Add Since-annotation to `Coercible`

    Signed-off-by: Herbert Valerio Riedel <>
    hvr committed Mar 1, 2014
Commits on Jan 30, 2014
  1. Document Coercible in GHC.Types

    It is not exported from here, but haddock still uses this documentation
    (and not the one from the fake GHC/Prim.hs file). So just put the user
    documentation here.
    nomeata committed Jan 30, 2014
  2. Comment typo

    nomeata committed Jan 30, 2014
Commits on Oct 27, 2013
  1. Add overlooked language extensions to `IntWord64.hs`

    This was overseen in b07b88e
    as the extensions are only needed when compiling for 32-bit archs.
    Signed-off-by: Herbert Valerio Riedel <>
    hvr committed Oct 27, 2013
  2. Modernize `ghc-prim.cabal` to `cabal-version>=1.10`

    This also removes the use of `makefileHook` in `Setup.hs` which was
    dropped from the `Cabal` API
    Note: This cleanups make `ghc-prim` almost a proper Cabal package;
    `cabal sdist` still needs to be tweaked to change `build-type` to
    `Simple`, to make the resulting ghc-prim source distribution package
    hvr committed Oct 27, 2013
  3. Add missing `{-# LANGUAGE #-}` pragmas

    Signed-off-by: Herbert Valerio Riedel <>
    hvr committed Oct 27, 2013
Commits on Oct 25, 2013
  1. Add actual documentation for new SPEC type.

    Signed-off-by: Austin Seipp <>
    thoughtpolice committed Oct 25, 2013
  2. Implement SPEC for SpecConstr as a built in type.

    Signed-off-by: Austin Seipp <>
    thoughtpolice committed Oct 25, 2013
Commits on Sep 18, 2013
  1. Comments only

    jstolarek committed Sep 18, 2013
  2. Add `{-# MINIMAL #-}` to `class Eq` and `class Ord`

    This makes use of the new compiler checked minimal-complete-defintion
    `{-# MINIMAL #-}` annotation (see #7633 for more details)
    Signed-off-by: Herbert Valerio Riedel <>
    hvr committed Sep 18, 2013
Commits on Sep 13, 2013
  1. Define GHC.Types.Coercible

    This data type is required so that Coercible (which is actually a class
    and is exported from GHC.Prim) has a info table etc., similar to ~
    nomeata committed Sep 13, 2013
Commits on Sep 11, 2013
  1. Update Git repo URL in `.cabal` file

    hvr committed Sep 11, 2013
Commits on Aug 16, 2013
  1. Change return type for emulated 64bit comparisons

    In the previous patch I used Int64# as a return value for
    comparison primops used on 32bit machines for comparing Int64#
    and Word64#. This obviously wasn't a good idea. This patch changes
    return type from emulated Int64# to a native Int#.
    jstolarek committed Aug 16, 2013
Commits on Jul 26, 2013
  1. Comparison primops return Int# (Fixes #6135)

    For a deatiled discussion of this changes please visit the wiki page:
    jstolarek committed Apr 14, 2013
Commits on Jun 9, 2013
  1. add other architecture for bswap in a form of Stg functions.

    Patch from Vincent Hanquez
    igfoo committed Jun 9, 2013
Commits on Dec 6, 2012
  1. Add word2float

    tibbe committed Dec 6, 2012
Commits on Nov 30, 2012
  1. Bump version number following new policy

    We now keep the HEAD version numbers as values which would be suitable
    for immediate release.
    igfoo committed Nov 30, 2012
Commits on Nov 23, 2012
Commits on Nov 13, 2012
Commits on Jul 10, 2012
  1. Bump version to

    pcapriotti committed Jul 10, 2012
Commits on Jun 21, 2012
  1. Move GHC.Generics to base

    There is no real reason for it to be in ghc-prim, and it
    complicates things.
    dreixel committed Jun 21, 2012
Commits on Jun 19, 2012
  1. Move divInt#/modInt# from base

    This allows them to be shared with integer-gmp
    igfoo committed Jun 19, 2012
Commits on May 21, 2012
Commits on Feb 21, 2012
  1. Minor Haddock documentation fix

    dreixel committed Feb 21, 2012
Commits on Feb 16, 2012
  1. Add CTYPE pragmas

    igfoo committed Feb 16, 2012
Commits on Sep 26, 2011
  1. Merge branch 'fix#5464' of /home/staff/magal101/repos/ghc/libraries/g…

    …hc-prim into fix#5464
    Solved conflicts:
    dreixel committed Sep 26, 2011