„Optimize away” `parseFileContentsWithExts`?
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- tooling
Línea de trabajo
Start with the parseFileContentsWithExts call sites in src/Haskell/Template/Task.hs (around lines 746-760) and the file-based parsing in raw/embedded/src/TestHarness.hs (around lines 208-227), and compare them with the in-memory parse usages. Check the transitive callers and whether #83 and #68 already remove some of them. Done means the issue's questions are answered for each call site, with redundant parsing removed and the test suite still passing.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
At least after #83 and #68, some parsing work will probably be redundant.
Some (transitive) uses of parseFileContentsWithExts will likely have disappeared.
Others might be considered double work, since certain modules are already parsed with haskell-src-exts for other purposes than the nameModules-function.
Indeed, it is not very clear why parseFileContentsWithExts is currently used, parsing files, instead of parsing strings in memory as the parse function is doing for a lot of purposes: https://github.com/fmidue/haskell-template-task/blob/e4c0868c4ed8bd2606824ba7732a727d7ca3940a/src/Haskell/Template/Task.hs#L746-L760
Maybe it has to do with intricacies of dealing with extensions (in the package’s string parsing functions vs. its file parsing functions), given the comments at https://hackage-content.haskell.org/package/haskell-src-exts-1.24.0/docs/Language-Haskell-Exts-Parser.html#t:ParseMode.
Separately, the usages in https://github.com/fmidue/haskell-template-task/blob/e4c0868c4ed8bd2606824ba7732a727d7ca3940a/raw/embedded/src/TestHarness.hs#L208-L227 should be revisited. Do we really need to do file IO there, parsing the submission on disk? Haven’t we, at that point, already parsed the submission in memory anyway, for the TemplateMatch check at the very least?
- Lenguaje dominante
- Haskell
- Estrellas
- 0
- Forks
- 1
- Merge medio
- 2 d 19 h
- PR fusionados (30 d)
- 7
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fmidue/haskell-template-task
-
Add more integration testsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Add fourmolu and fix warningsAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
-
Separate task config and task instancePosiblemente ocupada @nimec01 la tomó hace 89 días. Abiertobefore-next-semester
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
fmidue/haskell-template-task#56 · 4 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
Todos los issues de fmidue/haskell-template-task
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
haskell/bytestring#730 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
seal-harness/seal-harness#399 ·
Los mantenedores suelen responder en 1 día
-
add previously overlooked rulesAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
reflex-frp/reflex#563 ·