Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate on typelevel organization #314

Merged
merged 2 commits into from
Nov 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cats-time ![Continuous Integration](https://github.com/typelevel/cats-time/workflows/Continuous%20Integration/badge.svg) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.chrisdavenport/cats-time_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.chrisdavenport/cats-time_2.13)
# cats-time ![Continuous Integration](https://github.com/typelevel/cats-time/workflows/Continuous%20Integration/badge.svg) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.typelevel/cats-time_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.typelevel/cats-time_2.13)

Instances for Cats Typeclasses for Java 8 Time. Similar to the encoding that are offered in Circe and Cormorant.

Expand Down
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ lazy val docs = project

// General Settings
lazy val commonSettings = Seq(
organization := "org.typelevel",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.6.1",
"org.typelevel" %%% "cats-laws" % "2.6.1" % Test,
Expand Down Expand Up @@ -146,7 +147,7 @@ lazy val micrositeSettings = Seq(
// General Settings
inThisBuild(
List(
organization := "io.chrisdavenport",
organization := "org.typelevel",
developers := List(
Developer(
"ChristopherDavenport",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

trait all
extends duration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import java.time.Duration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import java.time.Instant
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import cats.implicits._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import cats.implicits._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import cats.implicits._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import java.time.Month
import java.time.format.TextStyle
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import java.time.MonthDay
import java.time.format.DateTimeFormatter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import cats.implicits._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import cats.implicits._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import java.time.Period
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import java.time.Year
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import cats.implicits._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import cats.implicits._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import java.time.ZoneId
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats._
import java.time.ZoneOffset
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package io.chrisdavenport.cats
package org.typelevel.cats

package object time extends instances.all
6 changes: 3 additions & 3 deletions modules/docs/src/main/mdoc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: home

---
# cats-time [![Build Status](https://github.com/ChristopherDavenport/cats-time/workflows/CI/badge.svg)](https://github.com/ChristopherDavenport/cats-time/actions?query=workflow%3ACI+branch%3Amaster) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.chrisdavenport/cats-time_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.chrisdavenport/cats-time_2.13)
# cats-time [![Build Status](https://github.com/ChristopherDavenport/cats-time/workflows/CI/badge.svg)](https://github.com/ChristopherDavenport/cats-time/actions?query=workflow%3ACI+branch%3Amaster) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.typelevel/cats-time_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.typelevel/cats-time_2.13)

Instances for Cats Typeclasses for Java 8 Time. Similar to the encoding that are offered in Circe and Cormorant.

Expand All @@ -15,7 +15,7 @@ To use cats-time in an existing SBT project with Scala 2.11 or a later version,

```scala
libraryDependencies ++= Seq(
"io.chrisdavenport" %% "cats-time" % "<version>"
"org.typelevel" %% "cats-time" % "<version>"
)
```

Expand All @@ -24,7 +24,7 @@ libraryDependencies ++= Seq(
First lets start with some imports.

```scala mdoc:silent
import io.chrisdavenport.cats.time._
import org.typelevel.cats.time._
import cats.implicits._
import java.time._
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.chrisdavenport.cats.time.arb
package org.typelevel.cats.time.arb

import java.time._

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.CommutativeMonoidTests
import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.duration._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.duration._
import java.time.Duration
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.instant._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.instant._
import java.time.Instant
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.localdate._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.localdate._
import java.time.LocalDate
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.localdatetime._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.localdatetime._
import java.time.LocalDateTime
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.localtime._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.localtime._
import java.time.LocalTime
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import java.time.MonthDay

import cats.kernel.laws.discipline.{HashTests, OrderTests}
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.monthday._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.monthday._
import munit.DisciplineSuite

class MonthDayTests extends DisciplineSuite {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import java.time.Month

import cats.kernel.laws.discipline.{HashTests, OrderTests}
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.month._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.month._
import munit.DisciplineSuite

class MonthTests extends DisciplineSuite {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.offsetdatetime._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.offsetdatetime._
import java.time.OffsetDateTime
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.offsettime._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.offsettime._
import java.time.OffsetTime
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import munit.DisciplineSuite
// import cats.kernel.laws.discipline.HashTests
// import cats.kernel.laws.discipline.OrderTests
// import TimeArbitraries._
// import java.time.Period
// import io.chrisdavenport.cats.time.instances.hashWithOrder._
// import org.typelevel.cats.time.instances.hashWithOrder._

class PeriodTests extends DisciplineSuite {
// checkAll("Period", HashTests[Period].hash)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.yearmonth._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.yearmonth._
import java.time.YearMonth
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.year._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.year._
import java.time.Year
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.EqTests
import cats.kernel.laws.discipline.HashTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.zoneid._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.zoneid._
import java.time.ZoneId
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.zoneoffset._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.zoneoffset._
import java.time.ZoneOffset
import munit.DisciplineSuite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.chrisdavenport.cats.time.instances
package org.typelevel.cats.time.instances

import cats.kernel.laws.discipline.HashTests
import cats.kernel.laws.discipline.OrderTests
import io.chrisdavenport.cats.time.arb.TimeArbitraries._
import io.chrisdavenport.cats.time.instances.zoneddatetime._
import org.typelevel.cats.time.arb.TimeArbitraries._
import org.typelevel.cats.time.instances.zoneddatetime._
import java.time.ZonedDateTime
import munit.DisciplineSuite

Expand Down