Skip to content

Commit

Permalink
Add blankLine from Stack project
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Sep 22, 2023
1 parent eda8a7e commit 420b141
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
exception.
* Add `prettyGeneric` and `prettyWith` for greater flexibility with pretty
logging.
* Add `blankLine`.

## 0.1.6.0

Expand Down
5 changes: 5 additions & 0 deletions src/RIO/PrettyPrint.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module RIO.PrettyPrint
, displayMilliseconds
, logLevelToStyle
-- * Formatting utils
, blankLine
, bulletedList
, spacedBulletedList
, mkBulletedList
Expand Down Expand Up @@ -220,6 +221,10 @@ wordDocs = map fromString . words
flow :: String -> StyleDoc
flow = fillSep . wordDocs

-- | A blank line.
blankLine :: StyleDoc
blankLine = line <> line

-- | @debug message action@ brackets any output of the specified @action@ with
-- an initial and final @message@ at log level 'LevelDebug'. The initial message
-- is prefixed with the label @Start:@. The final message is prefixed with
Expand Down

0 comments on commit 420b141

Please sign in to comment.