Code Monkey home page Code Monkey logo

cats-time's People

Contributors

armanbilge avatar bpg avatar christopherdavenport avatar cquiroz avatar d1skort avatar danicheg avatar dependabot[bot] avatar djspiewak avatar kubukoz avatar larsrh avatar liff avatar lukoyanov avatar massimosiani avatar mergify[bot] avatar nigredo-tori avatar rpiaggio avatar scala-steward avatar sh0hei avatar typelevel-steward[bot] avatar valencik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cats-time's Issues

Add to cats homepage?

Christopher, Thanks so much for creating this and several other pure FP libraries. Would you be open to listing them on cats homepage for easier discovery?

Export TimeArbitraries

It would be nice to use TimeArbitraries outside cats-time. Perhaps it could use the testkit style to make it importable
Thanks

Adopt Scala Code of Conduct

I believe that these projects should offer a friendly and safe space for working together. I am in the process of adding this to most of my libraries.

If you have comments to this regard, I would like to hear them and this issue will be a good place to field such discussions.

Year instances?

Is there a reason that there's no Year instances or just oversight? I could create a quick PR if that's wanted :)

scala-native 0.5.1 release would be great

As far as I've understood scala-native was introduced in 0.5.1, according to the version mapping

lazy val commonNativeSettings = Seq(
  tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "0.5.1").toMap
)

It would be great to make a fresh release of this lib, with the respective scala-native support.

  • I had some issues with 0.4.7 sbt-scala-native plugin, maybe worth downgrading to 0.4.5

Conflicting ContravariantShow for ZoneOffset

It seems my instances for ZoneId and ZoneOffset are slightly broken. When importing io.chrisdavenport.cats.time.instances.all._, I get a conflict when trying to show a ZoneOffset:

scala> show"${ZoneOffset.UTC}"
<console>:22: error: type mismatch;
 found   : java.time.ZoneOffset
 required: cats.Show.Shown
       show"${ZoneOffset.UTC}"
                         ^

This arises because there are two overlapping instances for ContravariantShow[-T]:

scala> Show.Shown.mat(ZoneOffset.UTC)
<console>:22: error: ambiguous implicit values:
 both value zoneidInstances in trait zoneid of type => cats.Show[java.time.ZoneId] with cats.Eq[java.time.ZoneId] with cats.Hash[java.time.ZoneId]
 and value zoneoffsetInstances in trait zoneoffset of type => cats.Show[java.time.ZoneOffset] with cats.Order[java.time.ZoneOffset] with cats.Hash[java.time.ZoneOffset]
 match expected type cats.Show.ContravariantShow[java.time.ZoneOffset]
       Show.Shown.mat(ZoneOffset.UTC)
                     ^

, and the compiler can't choose a better one.

I'm not sure what would be the best course of action here. Removing Show[ZoneOffset] would fix interpolation, however most of generic code I've seen relies directly on Show!

Next release

We should make a release with the changes in particular Scala 3 supooet and the change of the modules
I'll try to produce a RC to test the waters

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.