Hi Tobias,

Have you seen DSH [1]? You might also be interested in Persistent [2], but it sounds like it has different goals than what you are after.

[1] http://hackage.haskell.org/package/DSH
[2] http://www.yesodweb.com/book/persistent