nrinaudo on master
Update sbt to 1.6.2 Merge pull request #138 from nr… (compare)
nrinaudo on update-sbt-1.6.2
Update sbt to 1.6.2 (compare)
nrinaudo on update-kantan.sbt-2.8.2
nrinaudo on master
Update to kantan.sbt 2.8.2 Merge pull request #137 from nr… (compare)
nrinaudo on update-kantan.sbt-2.8.2
Update to kantan.sbt 2.8.2 (compare)
I played around with this a bit and here is one idea that works quite cleanly in the current model:
https://gist.github.com/rubenpieters/05cbc4d3884bcdf3aaf9ad8bd9920483
(I also had another idea where matchdecoders could be represented as a list of groupdecoders but that would require a lot of breaking stuff in the current implementation)
but for the progressed match gist: if there is a way to know how much of the matches a decoder will take from the matcher then the implicit could be generalized to more arbitrary shapes.
gr
stand for?
(CC1, CC4)
issue if that's a blocker?
kantan.regex
also provides non-generic helpers for case class decoder creation - I don't know if you've seen those?
MatchDecoder.decoder(1, 3, 5) { (i: Int, d: Date, l: Long) => new MyType(i, d, l) }
ordered
in the documentation. I should have used decoder
. I'll create an issue