mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-12 12:09:08 +03:00
Remove unsafeFromJust and add flattenMaybe.
This commit is contained in:
parent
0dd3915711
commit
98af8b417b
@ -7,7 +7,7 @@ module Database.Relational.Query.Expr (
|
|||||||
|
|
||||||
valueExpr,
|
valueExpr,
|
||||||
|
|
||||||
just, unsafeFromJust
|
just, flattenMaybe
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Prelude hiding (and, or)
|
import Prelude hiding (and, or)
|
||||||
@ -73,5 +73,5 @@ valueExpr = Expr . showConstantSQL
|
|||||||
just :: Expr ft -> Expr (Maybe ft)
|
just :: Expr ft -> Expr (Maybe ft)
|
||||||
just = Expr . showExpr
|
just = Expr . showExpr
|
||||||
|
|
||||||
unsafeFromJust :: Expr (Maybe ft) -> Expr ft
|
flattenMaybe :: Expr (Maybe (Maybe ft)) -> Expr (Maybe ft)
|
||||||
unsafeFromJust = Expr . showExpr
|
flattenMaybe = Expr . showExpr
|
||||||
|
Loading…
Reference in New Issue
Block a user