
14 Jun
2008
14 Jun
'08
5:06 p.m.
Hi, I've been thinking about template haskell sugar lately. Some cool libraries are there such as metaHDBC or the template haskell printf library. However they all have one thing in common: $(printf "...") a b c $(runStmt "INSERT INTO ( ) VALUES ( ?, ?, ? )" ) 2 3 4 Would it make sense to automatically splice those functions? {-# auto-splice: runStmt, printf #-} So that you can just use printf "..." a b c and runStmt "INSERT INTO ( ) VALUES ( ?, ?, ? )" 2 3 4 without $() ? Would this be convinient? Marc Weber