In the Frames library, one has a readTable
function, that generates a record type based on a CSV file.
Is it possible to generate a call like foreign import ccall unsafe "// c code" c_foo :: Int -> IO ()
?
I've tried to accomplish so using a [d| ... |]
and a [t| ... |]
quasiquoters, but in both I get a parser error.