File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ Breaking:
3636 => Transform g (m a) -> Alg g (m a) -> Maybe FilePath -> Fix g -> m a
3737 ```
3838
39+ * `Nix. Normal `
40+ * add `thunkVal` literal & use it where appropriate `{deThunk, removeEffects}`
3941
4042
4143
Original file line number Diff line number Diff line change @@ -162,6 +162,8 @@ stubCycles =
162162 Free
163163 where
164164 Free (NValue' cyc) = opaque
165+ thunkVal :: Applicative f => NValue t f m
166+ thunkVal = nvStr $ makeNixStringWithoutContext " <thunk>"
165167
166168removeEffects
167169 :: (MonadThunk t m (NValue t f m ), MonadDataContext f m )
@@ -171,7 +173,7 @@ removeEffects =
171173 iterNValueM
172174 id
173175 -- 2021-02-25: NOTE: Please, unflip this up the stack
174- (\ t f -> f =<< queryM (pure opaque ) t)
176+ (\ t f -> f =<< queryM (pure thunkVal ) t)
175177 (fmap Free . sequenceNValue' id )
176178
177179opaque :: Applicative f => NValue t f m
@@ -181,4 +183,4 @@ dethunk
181183 :: (MonadThunk t m (NValue t f m ), MonadDataContext f m )
182184 => t
183185 -> m (NValue t f m )
184- dethunk = removeEffects <=< queryM (pure opaque )
186+ dethunk = removeEffects <=< queryM (pure thunkVal )
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ renderValue
206206 -> NValue t f m
207207 -> m (Doc ann )
208208renderValue _level _longLabel _shortLabel v = do
209- opts :: Options <- asks ( view hasLens)
209+ opts :: Options <- asks $ view hasLens
210210 bool
211211 prettyNValue
212212 prettyNValueProv
You can’t perform that action at this time.
0 commit comments