Support decoding from a Get monad
- Langage dominant
- Haskell
- Étoiles
- 120
- Forks
- 70
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I prefer not to ask for convenience functions willy-nilly, but I think refactoring `decodeFileOrFail` with this signature would be useful:
``` haskell
decodeGetFileOrFail :: Get a -> FilePath -> IO (Either (ByteOffset, String) a)
```
The reason is because there is a nontrivial chunk of code for running the incremental parser that preferably we'd avoid duplicating. I'll submit a PR soon.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start by reading the existing decodeFileOrFail entry point and the incremental parser path it uses. Check the proposed decodeGetFileOrFail signature against the current API; done means decoding from a Get value works without duplicating the nontrivial parser-running logic.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- haskell
- Domaine
- data
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100