Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in what_makes_fast_hs.rst #120

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix typo in what_makes_fast_hs.rst
ulysses4ever authored Mar 15, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit f168ac753c4ee61f7585b585480924526204195a
4 changes: 2 additions & 2 deletions src/Preliminaries/what_makes_fast_hs.rst
Original file line number Diff line number Diff line change
@@ -222,8 +222,8 @@ of a ``Counter`` data type that tracks some domain specific integer:
Normally, when compiling with ``-O2`` GHC will recognize and optimize this definition.

``Int`` is a :term:`Boxed` and :term:`Lifted` type in ``Counter``, this means
that each ``Counter`` holds a pointer to an ``Int`` on the heap *not* a pointer
to an ``Int`` directly. We can instruct GHC remove the heap indirection with the
that each ``Counter`` holds a pointer to an ``Int`` on the heap *not*
an ``Int`` directly. We can instruct GHC remove the heap indirection with the
`unpack
<https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/exts/pragmas.html?highlight=unpack#unpack-pragma>`_
pragma and a bang pattern: