File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ assembleString = \case
367367 Indented _ parts -> fromParts parts
368368 DoubleQuoted parts -> fromParts parts
369369 where
370- fromParts = fmap (fmap stringMConcat . sequence ) . traverse go
370+ fromParts = fmap (fmap mconcat . sequence ) . traverse go
371371
372372 go = runAntiquoted " \n "
373373 (pure . Just . makeNixStringWithoutContext)
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ module Nix.String
1919 , makeNixStringWithoutContext
2020 , makeNixStringWithSingletonContext
2121 , modifyNixContents
22- , stringMConcat
2322 , WithStringContext
2423 , WithStringContextT (.. )
2524 , extractNixString
@@ -133,11 +132,6 @@ intercalateNixString sep nss = NixString contents ctx
133132 contents = Text. intercalate (nsContents sep) (map nsContents nss)
134133 ctx = S. unions (nsContext sep : map nsContext nss)
135134
136- -- | Combine NixStrings using mconcat
137- stringMConcat :: [NixString ] -> NixString
138- stringMConcat =
139- foldr mappend (NixString mempty mempty )
140-
141135-- | Extract the string contents from a NixString that has no context
142136getStringNoContext :: NixString -> Maybe Text
143137getStringNoContext (NixString s c) | null c = Just s
@@ -219,7 +213,7 @@ hackyStringMappend = mappend
219213
220214-- | Combine NixStrings using mconcat
221215hackyStringMConcat :: [NixString ] -> NixString
222- hackyStringMConcat = stringMConcat
216+ hackyStringMConcat = mconcat
223217
224218-- | Constructs a NixString without a context
225219hackyMakeNixStringWithoutContext :: Text -> NixString
You can’t perform that action at this time.
0 commit comments