[Haskell-cafe] SQL-like DSL for haskell List of Records

Niklas Haas haskell at nand.wakku.to
Thu Mar 20 18:12:31 UTC 2014

On Thu, 20 Mar 2014 18:56:39 +0100, martin <martin.drautzburg at web.de> wrote:
> 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:

This can be generalized to any monad using MonadComprehensions as well.

More information about the Haskell-Cafe mailing list