Skip to content

Commit

Permalink
Make St SourcePos strict and UNPACKed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjaguarpaw committed Sep 1, 2022
1 parent cd6302d commit 0bda620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Text/Megaparsec/Stream.hs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ instance TraversableStream TL.Text where

-- | An internal helper state type combining a difference 'String' and an
-- unboxed 'SourcePos'.
data St = St SourcePos ShowS
data St = St {-# UNPACK #-} !SourcePos ShowS

-- | A helper definition to facilitate defining 'reachOffset' for various
-- stream types.
Expand Down

0 comments on commit 0bda620

Please sign in to comment.