Conj. Formula1 ::= Formula1 "&" Formula2 ;
Neg. Formula2 ::= "-" Formula2 ;
Atom. Formula2 ::= AIdent ;
+Dir0. Formula2 ::= "0" ;
+Dir1. Formula2 ::= "1" ;
coercions Formula 2 ;
-- Branches
resolveWhere = resolveExp . unWhere
resolveFormula :: Formula -> Resolver C.Formula
+resolveFormula Dir0 = return $ C.Dir 0
+resolveFormula Dir1 = return $ C.Dir 1
resolveFormula (Atom i) = C.Atom <$> resolveName i
resolveFormula (Neg phi) = C.negFormula <$> resolveFormula phi
resolveFormula (Conj phi psi) = C.andFormula <$> resolveFormula phi