[Haskell-cafe] functional database queries

Henning Thielemann lemming at henning-thielemann.de
Wed Feb 21 09:55:54 EST 2007


At
 http://www.haskell.org/hawiki/HaskellDbTutorial
  it is described, how database queries can be modelled with a monad.
However, I wonder if this is also possible without monads. Say, writing

"DB.map col1 $ DB.filter (\row -> col2 row == 10+2) myTable"

for

"SELECT col1 FROM MyTable where col2 = 10+2"


More information about the Haskell-Cafe mailing list