Remove test code from Esqueleto.hs.

This commit is contained in:
Felipe Lessa 2012-09-03 17:02:49 -03:00
parent 3330e6c4ee
commit 5bdac55e90

View File

@ -19,9 +19,3 @@ import Database.Esqueleto.Internal.Language
import Database.Esqueleto.Internal.Sql
import Database.Persist.Store
import Database.Persist.GenericSql
-- test :: (PersistField t, PersistEntity a, PersistEntity b, PersistEntityBackend a ~ SqlPersist, PersistEntityBackend b ~ SqlPersist) => EntityField b t -> SqlPersist IO [(Entity a, Single t, Entity b)]
test f = select $ do
(x,y,z) <- from
where_ (z^.f ==. y^.f)
return (x, y^.f, z)