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
204
204
(M. lookup " outPath" s)
205
205
_ -> stub
206
206
207
- fromValue = fromMayToValue $ TString mempty
207
+ fromValue = fromMayToValue $ TString HasContext
208
208
209
209
instance Convertible e t f m
210
210
=> 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
467
467
. (MonadEval v m , FromValue NixString m v )
468
468
=> NString (m v )
469
469
-> m (Maybe NixString )
470
- assembleString =
471
- fromParts .
472
- \ case
473
- Indented _ parts -> parts
474
- DoubleQuoted parts -> parts
470
+ assembleString = fromParts . stringParts
475
471
where
476
472
fromParts xs = (mconcat <$> ) . sequence <$> traverse go xs
477
-
478
473
go =
479
474
runAntiquoted
480
475
" \n "
Original file line number Diff line number Diff line change @@ -654,6 +654,10 @@ paramName :: Params r -> Maybe VarName
654
654
paramName (Param n ) = pure n
655
655
paramName (ParamSet _ _ n) = n
656
656
657
+ stringParts :: NString r -> [Antiquoted Text r ]
658
+ stringParts (DoubleQuoted parts) = parts
659
+ stringParts (Indented _ parts) = parts
660
+
657
661
stripPositionInfo :: NExpr -> NExpr
658
662
stripPositionInfo = transport phi
659
663
where
Original file line number Diff line number Diff line change @@ -753,8 +753,8 @@ describeValue =
753
753
TFloat -> " a float"
754
754
TBool -> " a boolean"
755
755
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"
758
758
TList -> " a list"
759
759
TSet -> " an attr set"
760
760
TClosure -> " a function"
You can’t perform that action at this time.
0 commit comments