File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ Breaking:
3838
3939 * `Nix. Normal `
4040 * add `thunkVal` literal & use it where appropriate `{deThunk, removeEffects}`
41+ * rename `opaque(,-> Val )`, indicate that it is a literal.
4142
4243
4344
Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ normalForm_
140140 -> m ()
141141normalForm_ t = void $ normalizeValue t
142142
143+ opaqueVal :: Applicative f => NValue t f m
144+ opaqueVal = nvStr $ makeNixStringWithoutContext " <cycle>"
145+
143146-- | Detect cycles & stub them.
144147stubCycles
145148 :: forall t f m
@@ -161,7 +164,8 @@ stubCycles =
161164 )
162165 Free
163166 where
164- Free (NValue' cyc) = opaque
167+ Free (NValue' cyc) = opaqueVal
168+
165169thunkVal :: Applicative f => NValue t f m
166170thunkVal = nvStr $ makeNixStringWithoutContext " <thunk>"
167171
@@ -176,9 +180,6 @@ removeEffects =
176180 (\ t f -> f =<< queryM (pure thunkVal) t)
177181 (fmap Free . sequenceNValue' id )
178182
179- opaque :: Applicative f => NValue t f m
180- opaque = nvStr $ makeNixStringWithoutContext " <cycle>"
181-
182183dethunk
183184 :: (MonadThunk t m (NValue t f m ), MonadDataContext f m )
184185 => t
You can’t perform that action at this time.
0 commit comments