@@ -148,7 +148,7 @@ moduleToCpp env (Module _ mn imps _ foreigns decls) = do
148 | (f' : fs') <- flds = [CppReturn $ CppLambda [CppCaptureAll] (farg <$> [f'])
148 | (f' : fs') <- flds = [CppReturn $ CppLambda [CppCaptureAll] (farg <$> [f'])
149 (Just $ CppAny [])
149 (Just $ CppAny [])
150 (CppBlock $ fieldLambdas fs')]
150 (CppBlock $ fieldLambdas fs')]
151− | otherwise = [CppReturn (CppObjectLiteral ((ctorKey, CppStringLiteralHash name) : zip fields' (CppVar <$> fields')))]
151+ | otherwise = [CppReturn (CppObjectLiteral ((ctorKey, CppStringLiteral name) : zip fields' (CppVar <$> fields')))]
153 declToCpp _ ident val = do
153 declToCpp _ ident val = do
154 val' <- valueToCpp val
154 val' <- valueToCpp val
@@ -406,7 +406,7 @@ moduleToCpp env (Module _ mn imps _ foreigns decls) = do
406 ProductType -> cpps
406 ProductType -> cpps
407 SumType ->
407 SumType ->
408 [ CppIfElse (CppBinary Equal (CppIndexer (CppStringLiteral ctorKey) (CppVar varName))
408 [ CppIfElse (CppBinary Equal (CppIndexer (CppStringLiteral ctorKey) (CppVar varName))
409− (CppStringLiteralHash ctor'))
409+ (CppStringLiteral ctor'))
410 (CppBlock cpps)
410 (CppBlock cpps)
411 Nothing ]
411 Nothing ]