You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ throwError $ErrorCall"builtins.replaceStrings: Arguments `from`&`to` are lists `from` what replace `to` what, so the number of their inhabitanting elements must always match."
947
+
when (length nsFromKeys /=length nsToVals) $ throwError $ErrorCall"builtins.replaceStrings: Arguments `from`&`to` construct a key-value map, so the number of their elements must always match."
950
948
951
949
let
952
-
go remainder processedAccum ctx =
953
-
casemaybePrefixMatches nsListMatch remainder of
950
+
go remainder processed ctx =
951
+
casemaybePrefixMatch remainder of
954
952
Nothing->
955
-
process remainder processedAccum ctx
953
+
-- Chip away chars until match
954
+
stepOneCharNgo remainder processed ctx
956
955
Just (matched, replacementNS, rest) ->
957
956
-- Allowing match on "" is a bug-quirk of Nix,
958
-
-- when "" is checked - it always matches. And so - if there is no previous matches the "" is replaced with " " and the process simply passesthrough the next char.
957
+
-- when "" is checked - it always matches. And so - when it checks - it always insers a replacement, and then process simply passesthrough the char that was under match.
0 commit comments