Make functionArgs primitive accept primops (fix #3624)#3626
Make functionArgs primitive accept primops (fix #3624)#3626edolstra merged 1 commit intoNixOS:masterfrom
functionArgs primitive accept primops (fix #3624)#3626Conversation
|
This is not correct behavior, as there are primops (like |
|
Oh, right, I did not think about such primops. Therefore, what should be the correct behavior for such "polymorphic" primops? I found This would allow Not too sure it's a good idea though. |
|
oh huh, i was not aware you could |
|
I think this change is correct and should be merged because:
|
|
All this stuff is wack, but @infinisil does make sense. And if |
|
Thanks, makes sense! |
Hi!
I ran into the bug I documented in #3624, that is
functionArgsnot acceptingprimops or partial applications orprimops.This PR just makes
functionArgsreturns{}when a primitive operation is given.It compiles properly for me, and as expected, evaluating
(import <nixpkgs>).lib.functionArgs mapindeed yields{}.