skunk icon indicating copy to clipboard operation
skunk copied to clipboard

Flesh out Refined module a bit

Open LukaJCB opened this issue 3 years ago • 13 comments

Looking for some early feedback on this one. Let me know if you have any thoughts on code structure and the like. I removed the NumericCodec file since it looked like a WIP kind of thing.

LukaJCB avatar Nov 29 '21 18:11 LukaJCB

This looks great to me. I like the .refined syntax.

tpolecat avatar Nov 29 '21 19:11 tpolecat

Looks like for some reason refined-cats is not published for 3.x, gonna follow up on their side.

LukaJCB avatar Nov 29 '21 23:11 LukaJCB

Also pushed a fix for #576 :)

LukaJCB avatar Nov 30 '21 17:11 LukaJCB

Looks like we ran into the infamous Scala 3.1.x and 3.0.x incompatability 😬

LukaJCB avatar Nov 30 '21 17:11 LukaJCB

Looks like we ran into the infamous Scala 3.1.x and 3.0.x incompatability 😬

Hooray! Is Refined being published on 3.1?

tpolecat avatar Nov 30 '21 17:11 tpolecat

Yes, it is.

fthomas avatar Nov 30 '21 18:11 fthomas

@fthomas could Refined be published with 3.0, or does it need stuff introduced in 3.1? I'm not super opposed to upgrading Skunk but I don't want to do it unless I have to.

tpolecat avatar Nov 30 '21 21:11 tpolecat

I guess it could be published with 3.0 but hasn't the 3.0 ship sailed already? FS2 >= 3.2 is on Scala 3.1 and I guess sooner or later you want to use a newer FS2 version here too.

fthomas avatar Nov 30 '21 22:11 fthomas

Ok well if FS2 is on 3.1 I guess we can upgrade. Lucky for us nobody is actually using Scala 3 :-P

tpolecat avatar Nov 30 '21 22:11 tpolecat

Updated to Scala 3.1.x and FS2 3.2.x

LukaJCB avatar Dec 06 '21 18:12 LukaJCB

Codecov Report

Merging #581 (4a92248) into main (9d3ae9b) will increase coverage by 0.29%. The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #581      +/-   ##
==========================================
+ Coverage   85.63%   85.93%   +0.29%     
==========================================
  Files         124      126       +2     
  Lines        1629     1628       -1     
  Branches       38       38              
==========================================
+ Hits         1395     1399       +4     
+ Misses        234      229       -5     
Impacted Files Coverage Δ
...main/scala/skunk/refined/codec/RefinedCodecs.scala 33.33% <33.33%> (ø)
...ed/src/main/scala/skunk/refined/codec/Syntax.scala 33.33% <33.33%> (ø)
...main/scala/skunk/refined/codec/RefTypeCodecs.scala 50.00% <50.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9d3ae9b...4a92248. Read the comment docs.

codecov-commenter avatar Feb 10 '22 01:02 codecov-commenter

@tpolecat let me know how you'd like to proceed with this one :)

LukaJCB avatar Feb 11 '22 17:02 LukaJCB

Yes, definitely! Mark it as ready for review when you think it's in good shape.

tpolecat avatar Feb 11 '22 17:02 tpolecat

Hey, I'm using this code with skunk 0.6.0, and it works great. So, I'm just wondering do we still want this? If yes, I can work on this by cherry pick the commits, and do any further works that are required.

Here is when I use it: https://github.com/lenguyenthanh/lichess-puzzles/blob/main/modules/database/src/main/scala/puzzle/db/Refined.scala

lenguyenthanh avatar Jun 13 '23 11:06 lenguyenthanh

@lenguyenthanh Sure, sounds good!

mpilquist avatar Jun 13 '23 15:06 mpilquist