Remove unsafeFromJust and add flattenMaybe.

This commit is contained in:
Kei Hibino 2013-05-21 15:54:40 +09:00
parent 0dd3915711
commit 98af8b417b

View File

@ -7,7 +7,7 @@ module Database.Relational.Query.Expr (
valueExpr,
just, unsafeFromJust
just, flattenMaybe
) where
import Prelude hiding (and, or)
@ -73,5 +73,5 @@ valueExpr = Expr . showConstantSQL
just :: Expr ft -> Expr (Maybe ft)
just = Expr . showExpr
unsafeFromJust :: Expr (Maybe ft) -> Expr ft
unsafeFromJust = Expr . showExpr
flattenMaybe :: Expr (Maybe (Maybe ft)) -> Expr (Maybe ft)
flattenMaybe = Expr . showExpr