| Copyright | (c) Stéphane Vialette, 2015 |
|---|---|
| License | MIT |
| Maintainer | vialette@gmail.com |
| Stability | experimental |
| Safe Haskell | Safe-Inferred |
Literal
Description
- data Literal a
- variable :: Literal t -> Variable t
- oppositeLiteral :: Literal a -> Literal a
- isPositive :: Literal a -> Bool
- isNegative :: Literal a -> Bool
Documentation
variable :: Literal t -> Variable t
The variable function returns the variable associated to a literal.
oppositeLiteral :: Literal a -> Literal a
The oppositeLiteral function returns the opposite literal of a literal.
>>>oppositeLiteral $ Positive 1NegativeLiteral 1>>>oppositeLiteral $ NegativeLiteral 1Positive 1
isPositive :: Literal a -> Bool
The isPositive function returns True if a literal is a positive literal.
isNegative :: Literal a -> Bool
The isNegativeLiteral function return True if a literal is a negative literal.