Skip to content

Commit a42bbb9

Browse files
committed
Value: builtin: upd
1 parent b4b1aaa commit a42bbb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Nix/Value.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,12 @@ nvBuiltin name f = Free $ nvBuiltin' name f
639639
builtin
640640
:: forall m f t
641641
. (MonadThunk t m (NValue t f m), MonadDataContext f m)
642-
=> VarName
642+
=> VarName -- ^ function name
643643
-> ( NValue t f m
644644
-> m (NValue t f m)
645-
)
645+
) -- ^ function
646646
-> m (NValue t f m)
647-
builtin name f = pure $ nvBuiltin name $ \a -> f a
647+
builtin = (pure .) . nvBuiltin
648648

649649

650650
builtin2

0 commit comments

Comments
 (0)