Add a Testable instance for Either
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
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- testing
Línea de trabajo
Start by reading the existing Testable instances in purescript-quickcheck and the Either type and note usage shown in the issue. Determine which instance or instances are needed to make Either String Unit usable with the testing machinery, then check the project’s tests for the expected behavior. Done means the instance supports the shown composition pattern and has tests covering it.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Result is not a very composable data type, which makes it clunky to work with. If we add a Testable instance for Either String Unit we can use the whole machinery around the Either type and make testing a much more pleasant experience.
Contrived example of pleasant experience:
p :: Array String -> Either String Unit
p a = do
i <- note "Couldn't find hello." (elemIndex "hello" a)
if mod i 2 > 0
then Left "hello isn't on an index divisible by two."
else Right unit
In my opinion this experience becomes pleasant because I can use do-notation, note and a load of other niceties.
If you think this is a good idea I can implement the instance(s) needed and make a PR.
- Lenguaje dominante
- PureScript
- Estrellas
- 108
- Forks
- 42
- Merge medio
- 2 d 23 h
- PR fusionados (30 d)
- 1
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 purescript/purescript-quickcheck
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
purescript/purescript-quickcheck#136 · 1 comentario ·
-
Lazy List Arbitrary InstancePosiblemente ocupada @eviefp la tomó hace 2206 días. Abiertotype: enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 20/100
purescript/purescript-quickcheck#111 · 2 comentarios · 2 reacciones ·
-
type: documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 55/100
-
purs-0.15 type: breaking change
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
purescript/purescript-quickcheck#104 · 12 comentarios ·
-
ShrinkingAbiertotype: enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
purescript/purescript-quickcheck#103 · 6 comentarios · 4 reacciones ·
Todos los issues de purescript/purescript-quickcheck
Issues similares
-
[prefer-expect-resolves] autofix leaves a stray ")" when the awaited expression is parenthesizedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jest-community/eslint-plugin-jest#2052 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
johanhaleby/occurrent#1505 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
jeanibarz/knowledge-base-mcp-server#1262 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
future-agi/future-agi#4092 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día