We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f390420 commit aa10739Copy full SHA for aa10739
src/Juvix/Compiler/Nockma/Translation/FromTree.hs
@@ -982,8 +982,9 @@ compile = \case
982
983
goAdd :: [Term Natural] -> Sem r (Term Natural)
984
goAdd = \case
985
- [arg, TAtom 1] -> return $ OpInc # arg
986
- [TAtom 1, arg] -> return $ OpInc # arg
+ -- remember that 1 is quoted: we match [quote 1]
+ [arg, TCell (TAtom 1) (TAtom 1)] -> return $ OpInc # arg
987
+ [TCell (TAtom 1) (TAtom 1), arg] -> return $ OpInc # arg
988
args -> callStdlib StdlibAdd args
989
990
goAllocClosure :: Tree.NodeAllocClosure -> Sem r (Term Natural)
0 commit comments