Skip to content

Commit d086f7e

Browse files
committed
Nix/String: rm hacky functions
1 parent f81cd78 commit d086f7e

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/Nix/String.hs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ module Nix.String
2828
, runWithStringContextT'
2929
, runWithStringContext
3030
, runWithStringContext'
31-
, hackyGetStringNoContext
32-
, hackyStringIgnoreContext
33-
, hackyMakeNixStringWithoutContext
3431
)
3532
where
3633

@@ -228,31 +225,3 @@ intercalateNixString sep nss = NixString contents ctx
228225
contents = Text.intercalate (nsContents sep) (map nsContents nss)
229226
ctx = S.unions (nsContext sep : map nsContext nss)
230227

231-
232-
-- * Deprecated API
233-
234-
-- {-# WARNING hackyGetStringNoContext, hackyStringIgnoreContext, hackyMakeNixStringWithoutContext "This NixString function needs to be replaced" #-}
235-
236-
-- NOTE: These functions are ERRADICATED from the source code.
237-
-- ERRADICATE them from the API.
238-
239-
-- | Combine two NixStrings using mappend
240-
hackyStringMappend :: NixString -> NixString -> NixString
241-
hackyStringMappend = mappend
242-
243-
-- | Combine NixStrings using mconcat
244-
hackyStringMConcat :: [NixString] -> NixString
245-
hackyStringMConcat = mconcat
246-
247-
-- | Constructs a NixString without a context
248-
hackyMakeNixStringWithoutContext :: Text -> NixString
249-
hackyMakeNixStringWithoutContext = makeNixStringWithoutContext
250-
251-
-- | Extract the string contents from a NixString even if the NixString has an associated context
252-
hackyStringIgnoreContext :: NixString -> Text
253-
hackyStringIgnoreContext = stringIgnoreContext
254-
255-
-- | Extract the string contents from a NixString that has no context
256-
hackyGetStringNoContext :: NixString -> Maybe Text
257-
hackyGetStringNoContext = getStringNoContext
258-

0 commit comments

Comments
 (0)