|
|
|
|
|
by yccs27
1297 days ago
|
|
It all gets more complicated when you want to pass more than one secret parameter, or the function already returns a Secret - now you need a monad. The key feature seems to be that the code does not need 'map' or anything, the secrecy flag is propagated regardless. |
|
"need a Monad" sounds scary but in practice it looks like this
If you need an escape hatch for something more complicated, you could provide an api to that