@@ -18,7 +18,7 @@ import Data.List ((\\), intersect)
1818import Drasil.Code.CodeExpr (sy , ($<) , ($>) , ($<=) , ($>=) , ($&&) , in' )
1919import qualified Drasil.Code.CodeExpr.Development as S (CodeExpr (.. ))
2020import Drasil.Code.CodeExpr.Development (CodeExpr (.. ), ArithBinOp (.. ),
21- AssocArithOper (.. ), AssocBoolOper (.. ), AssocConcatOper (.. ), BoolBinOp ( .. ), EqBinOp (.. ),
21+ AssocArithOper (.. ), AssocBoolOper (.. ), AssocConcatOper (.. ), EqBinOp (.. ),
2222 LABinOp (.. ), OrdBinOp (.. ), UFunc (.. ), UFuncB (.. ), UFuncVV (.. ), UFuncVN (.. ),
2323 VVNBinOp (.. ), VVVBinOp (.. ), NVVBinOp (.. ), ESSBinOp (.. ), ESBBinOp (.. ))
2424import Drasil.Database (UID , HasUID (.. ))
@@ -345,7 +345,6 @@ convExpr (ArithBinaryOp Frac (Lit (Int a)) (Lit (Int b))) = do -- hack to deal w
345345 getLiteral _ = error " convExpr: Rational space matched to invalid CodeType; should be Double or Float"
346346 return $ getLiteral sm
347347convExpr (ArithBinaryOp o a b) = liftM2 (arithBfunc o) (convExpr a) (convExpr b)
348- convExpr (BoolBinaryOp o a b) = liftM2 (boolBfunc o) (convExpr a) (convExpr b)
349348convExpr (LABinaryOp o a b) = liftM2 (laBfunc o) (convExpr a) (convExpr b)
350349convExpr (EqBinaryOp o a b) = liftM2 (eqBfunc o) (convExpr a) (convExpr b)
351350convExpr (OrdBinaryOp o a b) = liftM2 (ordBfunc o) (convExpr a) (convExpr b)
@@ -459,11 +458,6 @@ arithBfunc Pow = (#^)
459458arithBfunc Subt = (#-)
460459arithBfunc Frac = (#/)
461460
462- -- Maps a 'BoolBinOp' to it's corresponding GOOL binary function.
463- boolBfunc :: BoolBinOp -> (SValue r -> SValue r -> SValue r )
464- boolBfunc Impl = error " convExpr :=>"
465- boolBfunc Iff = error " convExpr :<=>"
466-
467461-- Maps an 'EqBinOp' to it's corresponding GOOL binary function.
468462eqBfunc :: (SharedProg r ) => EqBinOp -> (SValue r -> SValue r -> SValue r )
469463eqBfunc Eq = (?==)
@@ -1045,7 +1039,6 @@ convExprProc (ArithBinaryOp Frac (Lit (Int a)) (Lit (Int b))) = do -- hack to de
10451039 getLiteral _ = error " convExprProc: Rational space matched to invalid CodeType; should be Double or Float"
10461040 return $ getLiteral sm
10471041convExprProc (ArithBinaryOp o a b) = liftM2 (arithBfunc o) (convExprProc a) (convExprProc b)
1048- convExprProc (BoolBinaryOp o a b) = liftM2 (boolBfunc o) (convExprProc a) (convExprProc b)
10491042convExprProc (LABinaryOp o a b) = liftM2 (laBfunc o) (convExprProc a) (convExprProc b)
10501043convExprProc (EqBinaryOp o a b) = liftM2 (eqBfunc o) (convExprProc a) (convExprProc b)
10511044convExprProc (OrdBinaryOp o a b) = liftM2 (ordBfunc o) (convExprProc a) (convExprProc b)
0 commit comments