Skip to content
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions prettyprinter/src/Data/Text/Prettyprint/Doc/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1452,12 +1452,12 @@ fuse depth = go
data SimpleDocStream ann =
SFail
| SEmpty
| SChar Char (SimpleDocStream ann)
| SChar !Char (SimpleDocStream ann)

-- | Some layout algorithms use the Since the frequently used 'T.length' of
-- the 'Text', which scales linearly with its length, we cache it in this
-- constructor.
| SText !Int Text (SimpleDocStream ann)
| SText !Int !Text (SimpleDocStream ann)

-- | @Int@ = indentation level for the (next) line
| SLine !Int (SimpleDocStream ann)
Expand Down Expand Up @@ -1623,7 +1623,7 @@ data LayoutPipeline ann =
-- (e.g. via 'softline'').
data PageWidth

= AvailablePerLine Int Double
= AvailablePerLine !Int !Double
-- ^ Layouters should not exceed the specified space per line.
--
-- - The 'Int' is the number of characters, including whitespace, that
Expand Down