Add 'just' for Projection.

This commit is contained in:
Kei Hibino 2013-05-19 14:57:06 +09:00
parent d202a5700a
commit 827cf74660

View File

@ -9,7 +9,9 @@ module Database.Relational.Query.Projection (
compose, fromQualifiedSubQuery,
pi, piMaybe, flattenMaybe
pi, piMaybe, flattenMaybe,
just
) where
import Prelude hiding ((!!), pi)
@ -94,3 +96,6 @@ flattenMaybe (Composed pus) = Composed pus
piMaybe :: PersistableWidth b => Projection (Maybe a) -> Pi a b -> Projection (Maybe b)
piMaybe = unsafeProject persistableWidth
just :: Projection r -> Projection (Maybe r)
just (Composed us) = Composed us