
On Thu, 20 Mar 2014 18:56:39 +0100, martin
Hello all,
I am currently prototyping some DB-related ideas in haskell. To make the next step I would have to write some joins. I am happy to work with just Lists of Records.
Is there any DSL which relieves me from writing nested loops and all that caboodle? Doesn't have to provide SQL syntax either, just some expressiveness which comes close to basic SQL. Data volume will be miniscule.
I'm not sure what precisely you're looking for but if you just want to throw around some data in an SQL-like model you can leverage the power of the TransformListComp extension: http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#ge... This can be generalized to any monad using MonadComprehensions as well.