Safe Haskell | Safe-Infered |
---|
- type Binding l = (A l, Bool)
- (|->) :: A l -> Bool -> Binding l
- type Assign l = Map (A l) Bool
- lookup :: Ord l => A l -> Assign l -> Maybe Bool
- empty :: Assign l
- add :: Ord l => [Binding l] -> Assign l -> Assign l
- fromMap :: Map (A l) Bool -> Assign l
- toMap :: Assign l -> Map (A l) Bool
- eval :: Ord l => PropFormula l -> Assign l -> Bool
- prettyPrint :: Show l => Assign l -> Doc
Bindings
Assignments
lookup :: Ord l => A l -> Assign l -> Maybe Bool
lookup the truth-value of a variable from the given assignment,
or return Nothing
when the given variable is not bound.
add :: Ord l => [Binding l] -> Assign l -> Assign l
update the given assignment with a list of bindings, overwriting previous bindings
prettyPrint :: Show l => Assign l -> Doc