Add GHC.Prim.oneShot
authorJoachim Breitner <mail@joachim-breitner.de>
Sun, 26 Jan 2014 11:36:23 +0000 (11:36 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Sun, 2 Nov 2014 18:03:28 +0000 (19:03 +0100)
commitc271e32eac65ee95ba1aacc72ed1b24b58ef17ad
treefc9ea34e09f44452b4e6328cbe665b30a3e40ee5
parentc001bde73e38904ed161b0b61b240f99a3b6f48d
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.

Differential Revision: https://phabricator.haskell.org/D392
compiler/basicTypes/MkId.lhs
compiler/prelude/PrelNames.lhs
libraries/base/GHC/Event/Manager.hs
libraries/ghc-prim/GHC/Magic.hs
testsuite/.gitignore
testsuite/tests/simplCore/prog003/Makefile [new file with mode: 0644]
testsuite/tests/simplCore/prog003/OneShot1.hs [new file with mode: 0644]
testsuite/tests/simplCore/prog003/OneShot2.hs [new file with mode: 0644]
testsuite/tests/simplCore/prog003/simplCore.oneShot.stderr [new file with mode: 0644]
testsuite/tests/simplCore/prog003/simplCore.oneShot.stdout [new file with mode: 0644]
testsuite/tests/simplCore/prog003/test.T [new file with mode: 0644]