@@ -83,7 +83,7 @@ fromMayToDeeperValue t v =
8383 do
8484 v' <- fromValueMay v
8585 maybe
86- (throwError $ Expectation @ t @ f @ m t ( Free $ getDeeper v) )
86+ (throwError $ Expectation @ t @ f @ m t $ Free $ getDeeper v)
8787 pure
8888 v'
8989
@@ -154,7 +154,7 @@ instance Convertible e t f m
154154 fromValueMay =
155155 pure .
156156 \ case
157- NVConstant' (NInt b) -> pure ( fromInteger b)
157+ NVConstant' (NInt b) -> pure $ fromInteger b
158158 _ -> Nothing
159159
160160 fromValue = fromMayToValue TInt
@@ -177,7 +177,7 @@ instance Convertible e t f m
177177 pure .
178178 \ case
179179 NVConstant' (NFloat b) -> pure b
180- NVConstant' (NInt i) -> pure ( fromInteger i)
180+ NVConstant' (NInt i) -> pure $ fromInteger i
181181 _ -> Nothing
182182
183183 fromValue = fromMayToValue TFloat
@@ -202,7 +202,7 @@ instance ( Convertible e t f m
202202 (M. lookup " outPath" s)
203203 _ -> stub
204204
205- fromValue = fromMayToValue ( TString NoContext )
205+ fromValue = fromMayToValue $ TString NoContext
206206
207207instance Convertible e t f m
208208 => FromValue ByteString m (NValue' t f m (NValue t f m )) where
@@ -213,7 +213,7 @@ instance Convertible e t f m
213213 NVStr' ns -> encodeUtf8 <$> getStringNoContext ns
214214 _ -> mempty
215215
216- fromValue = fromMayToValue ( TString NoContext )
216+ fromValue = fromMayToValue $ TString NoContext
217217
218218
219219newtype Path = Path { getPath :: FilePath }
@@ -414,16 +414,14 @@ instance (Convertible e t f m, ToValue a m (NValue t f m))
414414instance Convertible e t f m
415415 => ToValue NixLikeContextValue m (NValue' t f m (NValue t f m )) where
416416 toValue nlcv = do
417- path <-
418- bool
419- (pure Nothing )
420- (pure <$> toValue True )
421- (nlcvPath nlcv)
422- allOutputs <-
423- bool
424- (pure Nothing )
425- (pure <$> toValue True )
426- (nlcvAllOutputs nlcv)
417+ let
418+ g f =
419+ bool
420+ (pure Nothing )
421+ (pure <$> toValue True )
422+ (f nlcv)
423+ path <- g nlcvPath
424+ allOutputs <- g nlcvAllOutputs
427425 outputs <- do
428426 let
429427 outputs = makeNixStringWithoutContext <$> nlcvOutputs nlcv
0 commit comments