brandonchinn178 / brandonchinn178/toml-reader

Add decodeToml function to type class?

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
16
Forks
8
PR merge metrics
No merged PRs in 30d

Description

For some instances of DecodeTOML, it might be more ergonomic to define in terms of `Value -> DecodeM a`, even while the `Decoder` interface is good for the common case.

We could allow implementing either and define them in terms of each other

```hs
tomlDecoder = makeDecoder decodeToml
decodeToml = runDecoder tomlDecoder
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the DecodeTOML type class and the Decoder, makeDecoder, and runDecoder interfaces named in the issue. Determine how supporting either implementation direction would affect the public API, then verify that both forms remain equivalent and are covered by the existing test suite; no test or source file is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.