I think you are looking for HaskellDB,
thanks, I'll look into it.
As with LINQ you need to put an initial effort into describing the
tables [...]
according to the documentation, that's what dbdirect is for?
I see the source, but not how to build it.
J.