My motivating example is the field() function.
In the program I'm writing: I'd like to call it with a column name as the initial argument and the remaining arguments defined at runtime. Something like this:
query conn "SELECT * FROM example_table ORDER BY field(f,?)" (Only (VaArgs [1,4,2,3]))
I don't mind whether VaArgs is a new type or you just use the In type, but the In type doesn't currently work in this context.
My motivating example is the field() function. In the program I'm writing: I'd like to call it with a column name as the initial argument and the remaining arguments defined at runtime. Something like this:
query conn "SELECT * FROM example_table ORDER BY field(f,?)" (Only (VaArgs [1,4,2,3]))
I don't mind whetherVaArgs
is a new type or you just use theIn
type, but theIn
type doesn't currently work in this context.