[Haskell-cafe] streaming translation using monads

Justin Bailey jgbailey at gmail.com
Wed Nov 19 12:11:10 EST 2008

On Tue, Nov 18, 2008 at 6:23 PM, Warren Harris <warrensomebody at gmail.com> wrote:
> I am working on a query language translator, and although I feel that a
> monadic formulation would work well for this application, I've stumbled on a
> number of questions and difficulties that I thought the knowledgeable people
> here might be able to help me with.

HaskellDB takes a similar approach. It's "Query" monad allows you to
build queries which are then translated to SQL by a "runQuery"
function. Could your bind operation collect the 'input' expressions
and then output them all at once via a "runTranslation" function? Do
you have to do in-place translation?


More information about the Haskell-Cafe mailing list