Currently some functions, e.g. strReplace expand to a lot of code. I should reuse that code in a function. Likely the syntax would be:
strReplace x y z = function "Development.NSIS.strReplace" [x,y,z] $ \[x,y,z] -> ...
That would generate a function which shoves the parameters into global variables, operates, and returns the result via a final global parameter (or list of them, perhaps).
One tricky detail is that uninstall and install functions live in different namespaces, so I might have to generate the function twice.
Currently some functions, e.g.
strReplace
expand to a lot of code. I should reuse that code in a function. Likely the syntax would be:That would generate a function which shoves the parameters into global variables, operates, and returns the result via a final global parameter (or list of them, perhaps).
One tricky detail is that uninstall and install functions live in different namespaces, so I might have to generate the function twice.