diff options
author | Facundo DomÃnguez <facundo.dominguez@tweag.io> | 2017-11-15 11:37:32 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-11-15 11:37:55 -0500 |
commit | 6dfe9828e2b3bd79e22e89c919b0d1b92273b718 (patch) | |
tree | 9cf6e590dc602a2c2f4388a8a4924325e74908c5 /compiler/main/StaticPtrTable.hs | |
parent | f5dc8ccc29429d0a1d011f62b6b430f6ae50290c (diff) | |
download | haskell-6dfe9828e2b3bd79e22e89c919b0d1b92273b718.tar.gz |
StaticPointers: Clarify documentation
* Document requirement to use the same binaries.
* Fix some code comments.
Test Plan: ./validate
Reviewers: bgamari, mboes, hvr
Reviewed By: bgamari, mboes
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D4172
Diffstat (limited to 'compiler/main/StaticPtrTable.hs')
-rw-r--r-- | compiler/main/StaticPtrTable.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/main/StaticPtrTable.hs b/compiler/main/StaticPtrTable.hs index 23d02f81ec..47547fca5b 100644 --- a/compiler/main/StaticPtrTable.hs +++ b/compiler/main/StaticPtrTable.hs @@ -60,13 +60,13 @@ Here is a running example: in ...(static k)... * The renamer looks for out-of-scope names in the body of the static - form, as always If all names are in scope, the free variables of the + form, as always. If all names are in scope, the free variables of the body are stored in AST at the location of the static form. * The typechecker verifies that all free variables occurring in the static form are floatable to top level (see Note [Meaning of - IdBindingInfo] in TcRnTypes). In our example, 'k' is floatable, even - though it is bound in a nested let, we are fine. + IdBindingInfo] in TcRnTypes). In our example, 'k' is floatable. + Even though it is bound in a nested let, we are fine. * The desugarer replaces the static form with an application of the function 'makeStatic' (defined in module GHC.StaticPtr.Internal of |