Skip to content

Commit ef883a2

Browse files
langston-barrettJeffrey Young
authored andcommitted
Fix typo in UNPACK pragma comment
1 parent aec84ec commit ef883a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Preliminaries/what_makes_fast_hs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ pragma and a bang pattern:
231231

232232
.. code-block:: haskell
233233
234-
data Counter = Counter {-# UNPACK -#} !Int
234+
data Counter = Counter {-# UNPACK #-} !Int
235235
236236
This pragma instructs GHC to store the contents of ``Int`` directly in the
237237
``Counter`` constructor, rather than storing a pointer to an ``Int`` on the heap

0 commit comments

Comments
 (0)