@@ -351,7 +351,7 @@ data FileType
351351
352352instance Convertible e t f m => ToValue FileType m (NValue t f m ) where
353353 toValue =
354- toValue . makeNixStringWithoutContext .
354+ toValue . mkNixStringWithoutContext .
355355 \ case
356356 FileTypeRegular -> " regular" :: Text
357357 FileTypeDirectory -> " directory"
@@ -654,7 +654,7 @@ matchNix pat str =
654654 mkMatch t =
655655 bool
656656 (toValue () ) -- Shorthand for Null
657- (toValue $ makeNixStringWithoutContext t)
657+ (toValue $ mkNixStringWithoutContext t)
658658 (not $ Text. null t)
659659
660660 case matchOnceText re s of
@@ -710,7 +710,7 @@ attrNamesNix
710710 :: forall e t f m . MonadNix e t f m => NValue t f m -> m (NValue t f m )
711711attrNamesNix =
712712 coersion . inHask @ (AttrSet (NValue t f m ))
713- (fmap (makeNixStringWithoutContext . coerce) . sort . M. keys)
713+ (fmap (mkNixStringWithoutContext . coerce) . sort . M. keys)
714714 where
715715 coersion = fmap (coerce :: CoerceDeeperToNValue t f m )
716716
@@ -862,7 +862,7 @@ dirOfNix nvdir =
862862unsafeDiscardStringContextNix
863863 :: MonadNix e t f m => NValue t f m -> m (NValue t f m )
864864unsafeDiscardStringContextNix =
865- inHask (makeNixStringWithoutContext . stringIgnoreContext)
865+ inHask (mkNixStringWithoutContext . stringIgnoreContext)
866866
867867-- | Evaluate `a` to WHNF to collect its topmost effect.
868868seqNix
@@ -1022,7 +1022,7 @@ replaceStringsNix tfrom tto ts =
10221022
10231023 -- 2021-02-18: NOTE: rly?: toStrict . toLazyText
10241024 -- Maybe `text-builder`, `text-show`?
1025- finish ctx output = makeNixString (toStrict $ Builder. toLazyText output) ctx
1025+ finish ctx output = mkNixString (toStrict $ Builder. toLazyText output) ctx
10261026
10271027 replace (key, replacementNS, unprocessedInput) = replaceWithNixBug unprocessedInput updatedOutput
10281028
@@ -1120,7 +1120,7 @@ toFileNix name s =
11201120 t = coerce $ toText @ FilePath $ coerce mres
11211121 sc = StringContext t DirectPath
11221122
1123- toValue $ makeNixStringWithSingletonContext t sc
1123+ toValue $ mkNixStringWithSingletonContext t sc
11241124
11251125toPathNix :: MonadNix e t f m => NValue t f m -> m (NValue t f m )
11261126toPathNix = toValue @ Path <=< fromValue @ Path
@@ -1273,7 +1273,7 @@ scopedImportNix asetArg pathArg =
12731273
12741274getEnvNix :: MonadNix e t f m => NValue t f m -> m (NValue t f m )
12751275getEnvNix v =
1276- (toValue . makeNixStringWithoutContext . fromMaybe mempty ) =<< getEnvVar =<< fromStringNoContext =<< fromValue v
1276+ (toValue . mkNixStringWithoutContext . fromMaybe mempty ) =<< getEnvVar =<< fromStringNoContext =<< fromValue v
12771277
12781278sortNix
12791279 :: MonadNix e t f m
@@ -1405,11 +1405,11 @@ placeHolderNix p =
14051405 t <- fromStringNoContext =<< fromValue p
14061406 h <-
14071407 coerce @ (Prim m NixString ) @ (m NixString ) $
1408- (hashStringNix `on` makeNixStringWithoutContext )
1408+ (hashStringNix `on` mkNixStringWithoutContext )
14091409 " sha256"
14101410 (" nix-output:" <> t)
14111411 toValue
1412- $ makeNixStringWithoutContext
1412+ $ mkNixStringWithoutContext
14131413 $ Text. cons ' /'
14141414 $ Base32. encode
14151415 -- Please, stop Text -> Bytestring here after migration to Text
@@ -1540,7 +1540,7 @@ typeOfNix nvv =
15401540 NVBuiltin _ _ -> " lambda"
15411541 _ -> error " Pattern synonyms obscure complete patterns"
15421542
1543- toValue $ makeNixStringWithoutContext detectType
1543+ toValue $ mkNixStringWithoutContext detectType
15441544
15451545tryEvalNix
15461546 :: forall e t f m . MonadNix e t f m => NValue t f m -> m (NValue t f m )
@@ -1736,7 +1736,7 @@ appendContextNix tx ty =
17361736 _x -> throwError $ ErrorCall $ " Invalid types for context value in builtins.appendContext: " <> show _x
17371737
17381738 addContext ns newContextValues =
1739- makeNixString
1739+ mkNixString
17401740 (stringIgnoreContext ns)
17411741 (fromNixLikeContext $
17421742 NixLikeContext $
@@ -1750,7 +1750,7 @@ appendContextNix tx ty =
17501750 )
17511751
17521752nixVersionNix :: MonadNix e t f m => m (NValue t f m )
1753- nixVersionNix = toValue $ makeNixStringWithoutContext " 2.3"
1753+ nixVersionNix = toValue $ mkNixStringWithoutContext " 2.3"
17541754
17551755langVersionNix :: MonadNix e t f m => m (NValue t f m )
17561756langVersionNix = toValue (5 :: Int )
0 commit comments