Skip to content

Commit ae700e5

Browse files
committed
Pretty: use dquotes
1 parent 03d7bf0 commit ae700e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Nix/Pretty.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ wrapPath :: OperatorInfo -> NixDoc ann -> Doc ann
114114
wrapPath op sub =
115115
bool
116116
(precedenceWrap op sub)
117-
("\"" <> antiquote sub <> "\"")
117+
(dquotes $ antiquote sub)
118118
(wasPath sub)
119119

120120
-- | Handle Output representation of the string escape codes.
121121
prettyString :: NString (NixDoc ann) -> Doc ann
122122
prettyString (DoubleQuoted parts) =
123-
"\"" <> foldMap prettyPart parts <> "\""
123+
dquotes $ foldMap prettyPart parts
124124
where
125125
prettyPart (Plain t) = pretty $ escapeString t
126126
prettyPart EscapedNewline = "''\\n"

0 commit comments

Comments
 (0)