File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ instance ( Convertible e t f m
204204 (M. lookup " outPath" s)
205205 _ -> stub
206206
207- fromValue = fromMayToValue $ TString mempty
207+ fromValue = fromMayToValue $ TString HasContext
208208
209209instance Convertible e t f m
210210 => FromValue ByteString m (NValue' t f m (NValue t f m )) where
Original file line number Diff line number Diff line change @@ -467,14 +467,9 @@ assembleString
467467 . (MonadEval v m , FromValue NixString m v )
468468 => NString (m v )
469469 -> m (Maybe NixString )
470- assembleString =
471- fromParts .
472- \ case
473- Indented _ parts -> parts
474- DoubleQuoted parts -> parts
470+ assembleString = fromParts . stringParts
475471 where
476472 fromParts xs = (mconcat <$> ) . sequence <$> traverse go xs
477-
478473 go =
479474 runAntiquoted
480475 " \n "
Original file line number Diff line number Diff line change @@ -654,6 +654,10 @@ paramName :: Params r -> Maybe VarName
654654paramName (Param n ) = pure n
655655paramName (ParamSet _ _ n) = n
656656
657+ stringParts :: NString r -> [Antiquoted Text r ]
658+ stringParts (DoubleQuoted parts) = parts
659+ stringParts (Indented _ parts) = parts
660+
657661stripPositionInfo :: NExpr -> NExpr
658662stripPositionInfo = transport phi
659663 where
Original file line number Diff line number Diff line change @@ -753,8 +753,8 @@ describeValue =
753753 TFloat -> " a float"
754754 TBool -> " a boolean"
755755 TNull -> " a null"
756- TString NoContext -> " a string"
757- TString HasContext -> " a string with context "
756+ TString NoContext -> " a string with no context "
757+ TString HasContext -> " a string"
758758 TList -> " a list"
759759 TSet -> " an attr set"
760760 TClosure -> " a function"
You can’t perform that action at this time.
0 commit comments