Go to file
Felipe Lessa 2986d0996e Nicer 'from' interface.
Instead of

  select $ do
    (x,y,z) <- from
    where_ (z^.f ==. y^.f)
    return (x, y^.f, z)

now you may write

  select $
  from $ \(x,y,z) -> do
    where_ (z^.f ==. y^.f)
    return (x, y^.f, z)

Now the only difference in reading order wrt. SQL is the return
on the bottom of the expression. =)

Note that this does not change at all the expressivity of the
language since

  oldFrom = from return
2012-09-03 17:03:07 -03:00
src/Database Nicer 'from' interface. 2012-09-03 17:03:07 -03:00
.gitignore Initial skeleton. 2012-09-03 11:38:22 -03:00
esqueleto.cabal Second prototype, now using finally tagless style. 2012-09-03 15:42:28 -03:00
LICENSE Initial commit. 2012-09-03 09:18:39 -03:00
README Initial commit. 2012-09-03 09:18:39 -03:00
Setup.hs Initial commit. 2012-09-03 09:18:39 -03:00