We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfc1c41 commit 95812c8Copy full SHA for 95812c8
src/Nix/Value.hs
@@ -207,10 +207,10 @@ sequenceNValueF transform = \case
207
-- | @bind@
208
bindNValueF
209
:: (Monad m, Monad n)
210
- => (forall x . n x -> m x)
211
- -> (a -> n b)
212
- -> NValueF p m a
213
- -> n (NValueF p m b)
+ => (forall x . n x -> m x) -- ^ Transform @n@ into @m@.
+ -> (a -> n b) -- ^ A Kleisli arrow (see 'Control.Arrow.Kleisli' & Kleisli catagory).
+ -> NValueF p m a -- ^ "Unfixed" (openly recursive) value of an embedded Nix language.
+ -> n (NValueF p m b) -- ^ An implementation of @transform (f =<< x)@ for embedded Nix language values.
214
bindNValueF transform f = \case
215
NVConstantF a -> pure $ NVConstantF a
216
NVStrF s -> pure $ NVStrF s
0 commit comments