Re: [commit: ghc] master: Add GHC.Prim.oneShot (c271e32)

Perhaps this should be documented in the User's Guide? Janek Dnia niedziela, 2 listopada 2014, git@git.haskell.org napisał:
Repository : ssh://git@git.haskell.org/ghc
On branch : master Link : http://ghc.haskell.org/trac/ghc/changeset/c271e32eac65ee95ba1aacc72ed1b24b5 8ef17ad/ghc
---------------------------------------------------------------
commit c271e32eac65ee95ba1aacc72ed1b24b58ef17ad Author: Joachim Breitner
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.
Differential Revision: https://phabricator.haskell.org/D392
---------------------------------------------------------------
c271e32eac65ee95ba1aacc72ed1b24b58ef17ad 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 c271e32eac65ee95ba1aacc72ed1b24b58ef17ad _______________________________________________ ghc-commits mailing list ghc-commits@haskell.org http://www.haskell.org/mailman/listinfo/ghc-commits

Hi, Am Montag, den 03.11.2014, 20:20 +0100 schrieb Jan Stolarek:
Perhaps this should be documented in the User's Guide?
I don’t like having documentation scattered around, so I’d rather put all documentation in a singe place: The haddocks for this function. I should add a link to https://www.haskell.org/ghc/docs/latest/html/users_guide/special-ids.html though. Done. Greetings, Joachim -- Joachim “nomeata” Breitner mail@joachim-breitner.de • http://www.joachim-breitner.de/ Jabber: nomeata@joachim-breitner.de • GPG-Key: 0xF0FBF51F Debian Developer: nomeata@debian.org
participants (2)
-
Jan Stolarek
-
Joachim Breitner