| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Rel8.Internal.Expr.Bool
Synopsis
- false :: Expr Bool
- true :: Expr Bool
- (&&.) :: Expr Bool -> Expr Bool -> Expr Bool
- (||.) :: Expr Bool -> Expr Bool -> Expr Bool
- not_ :: Expr Bool -> Expr Bool
- and_ :: Foldable f => f (Expr Bool) -> Expr Bool
- or_ :: Foldable f => f (Expr Bool) -> Expr Bool
- boolExpr :: Expr a -> Expr a -> Expr Bool -> Expr a
- caseExpr :: [(Expr Bool, Expr a)] -> Expr a -> Expr a
- coalesce :: Expr (Maybe Bool) -> Expr Bool
Documentation
boolExpr :: Expr a -> Expr a -> Expr Bool -> Expr a Source #
Eliminate a boolean-valued expression.
Corresponds to bool.
caseExpr :: [(Expr Bool, Expr a)] -> Expr a -> Expr a Source #
A multi-way ifthenelse statement. The first argument to caseExpr is a
list of alternatives. The first alternative that is of the form (true, x)
will be returned. If no such alternative is found, a fallback expression is
returned.
Corresponds to a CASE expression in SQL.