-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Haskell - Expectativa Uses: no detecta usos en record syntax #336
Comments
Estuve jugando un ratito. La última línea de ese código, que aparentemente parsea a algo así como: (HsIdent "transferir") [HsPVar (HsIdent "auto1"),HsPVar (HsIdent "auto2")] (HsUnGuardedRhs (HsTuple [HsRecUpdate (HsVar (UnQual (HsIdent "auto1"))) [HsFieldUpdate (UnQual (HsIdent "nivelNafta")) (HsInfixApp (HsParen (HsApp (HsVar (UnQual (HsIdent "nivelNafta"))) (HsVar (UnQual (HsIdent "auto1"))))) (HsQVarOp (UnQual (HsSymbol "-"))) (HsApp (HsApp (HsVar (UnQual (HsIdent "cuantoLePuedeDar"))) (HsVar (UnQual (HsIdent "auto1")))) (HsVar (UnQual (HsIdent "auto2")))))],HsRecUpdate (HsVar (UnQual (HsIdent "auto2"))) [HsFieldUpdate (UnQual (HsIdent "nivelNafta")) (HsInfixApp (HsParen (HsApp (HsVar (UnQual (HsIdent "nivelNafta"))) (HsVar (UnQual (HsIdent "auto2"))))) (HsQVarOp (UnQual (HsSymbol "+"))) (HsApp (HsApp (HsVar (UnQual (HsIdent "cuantoLePuedeDar"))) (HsVar (UnQual (HsIdent "auto1")))) (HsVar (UnQual (HsIdent "auto2")))))]])) []]] Tiene constructores como https://github.com/mumuki/mulang/blob/master/src/Language/Mulang/Parsers/Haskell.hs Y ya que estamos, creo que tampoco está construyendo el árbol para No sé si cargar el issue en Mulang. @julian-berbel @flbulgarelli Lo cargo ahí? Tampoco sabría definir a qué debería parsear eso. |
Gracias por la ayuda Alf! Muy interesante |
👋 efectivamente este issue pertenece en mulang! |
¡Buenas!
Esta solución para este desafío tira como que no usa la función
cuantoLePuedeDar
y sí la usa.¿Tendrá algo que ver con que esté dentro de un constructor con record syntax?
The text was updated successfully, but these errors were encountered: