Open brandonchinn178 opened 1 year ago
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.
Value -> DecodeM a
Decoder
We could allow implementing either and define them in terms of each other
tomlDecoder = makeDecoder decodeToml decodeToml = runDecoder tomlDecoder
For some instances of DecodeTOML, it might be more ergonomic to define in terms of
Value -> DecodeM a
, even while theDecoder
interface is good for the common case.We could allow implementing either and define them in terms of each other