[commit: ghc] wip/oneShot: Add GHC.Prim.oneShot (b4dcb04)

git at git.haskell.org git at git.haskell.org
Fri Oct 31 13:19:28 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/oneShot
Link       : http://ghc.haskell.org/trac/ghc/changeset/b4dcb04253bb7277567b2823c17245b823acc029/ghc

>---------------------------------------------------------------

commit b4dcb04253bb7277567b2823c17245b823acc029
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Sun Jan 26 11:36:23 2014 +0000

    Add GHC.Prim.oneShot
    
    to allow the programer to explictitly set the oneShot flag. This helps
    with #7994 and will be used in left folds. Also see
    https://ghc.haskell.org/trac/ghc/wiki/OneShot
    
    This commit touches libraries/base/GHC/Event/Manager.hs (which used to
    have a local definition of the name oneShot) to avoid a shadowing error.


>---------------------------------------------------------------

b4dcb04253bb7277567b2823c17245b823acc029
 compiler/basicTypes/MkId.lhs                       | 42 ++++++++++++++++++++--
 compiler/prelude/PrelNames.lhs                     |  3 +-
 libraries/base/GHC/Event/Manager.hs                |  6 ++--
 libraries/ghc-prim/GHC/Magic.hs                    | 11 +++++-
 testsuite/.gitignore                               |  1 +
 .../should_compile => simplCore/prog003}/Makefile  |  0
 testsuite/tests/simplCore/prog003/OneShot1.hs      | 21 +++++++++++
 testsuite/tests/simplCore/prog003/OneShot2.hs      | 24 +++++++++++++
 .../simplCore/prog003/simplCore.oneShot.stderr     | 21 +++++++++++
 .../simplCore/prog003/simplCore.oneShot.stdout     |  1 +
 testsuite/tests/simplCore/prog003/test.T           |  7 ++++
 11 files changed, 130 insertions(+), 7 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc b4dcb04253bb7277567b2823c17245b823acc029


More information about the ghc-commits mailing list