Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tweag/ormolu
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 74fba49251127fa264c43086f3db1a947dbc9229
Choose a base ref
..
head repository: tweag/ormolu
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf9a8b2fbfa8c290be5a9a4168ee10f5bc7c7341
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Ormolu/Printer/Meat/Declaration/StringLiteral.hs
6 changes: 3 additions & 3 deletions src/Ormolu/Printer/Meat/Declaration/StringLiteral.hs
Original file line number Diff line number Diff line change
@@ -118,9 +118,9 @@ parseStringLiteral = \s -> do
in pre : T.replicate fill " " : go (col' + fill) suf
_ -> [s]

-- Don't touch the first line, and emove common whitespace from all
-- remaining lines as well as convert convert those consisting only of
-- whitespace to empty lines.
-- Don't touch the first line, and remove common whitespace from all
-- remaining lines as well as convert those consisting only of whitespace to
-- empty lines.
rmCommonWhitespacePrefixAndBlank :: [Text] -> [Text]
rmCommonWhitespacePrefixAndBlank = \case
[] -> []