kantan.csv icon indicating copy to clipboard operation
kantan.csv copied to clipboard

Parsing a cell as a NonEmptyList

Open annafernandez opened this issue 2 years ago • 0 comments

Hello,

Is it possible to write a decoder for a NonEmptyList in a generic manner? The only way I've managed to do it is defining an encoder per type. Say I have NonEmptyLists of NonNegSeconds and NonNegDouble. Do I need to define an encoder for each or is there a way to do it with type parameters if I have decoders for NonNegDouble and NonNegSeconds in the scope already?

Thanks!

annafernandez avatar Jun 15 '22 08:06 annafernandez