Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module contains the Relapse logic expressions: not, and, or.
Documentation
mkNotExpr :: [AnyExpr] -> Either String AnyExpr Source #
mkNotExpr dynamically creates a not expression, if the single argument is a bool expression.
notExpr :: Expr Bool -> Expr Bool Source #
notExpr creates a not expression, that returns true is the argument expression returns an error or false.
mkAndExpr :: [AnyExpr] -> Either String AnyExpr Source #
mkAndExpr dynamically creates an and expression, if the two arguments are both bool expressions.
andExpr :: Expr Bool -> Expr Bool -> Expr Bool Source #
andExpr creates an and expression that returns true if both arguments are true.