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

git at git.haskell.org git at git.haskell.org
Thu Oct 30 09:20:07 UTC 2014


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

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

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

commit 13a1ebef026784df9f7662f5aaaff004fbc2ec6c
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


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

13a1ebef026784df9f7662f5aaaff004fbc2ec6c
 compiler/basicTypes/MkId.lhs                       | 33 ++++++++++++++++++++--
 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, 121 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 13a1ebef026784df9f7662f5aaaff004fbc2ec6c


More information about the ghc-commits mailing list