Skip to content

Commit

Permalink
Rename package algebra -> cats.algebra
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed May 14, 2021
1 parent c51b726 commit 66b8074
Show file tree
Hide file tree
Showing 72 changed files with 118 additions and 61 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra.instances

import scala.annotation.tailrec
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package instances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package instances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cats
package algebra
package instances

import java.math.MathContext

import algebra.ring._
import cats.algebra.ring._

package object bigDecimal extends BigDecimalInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package cats
package algebra
package instances

import algebra.ring._
import cats.algebra.ring._

package object bigInt extends BigIntInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cats
package algebra
package instances

import scala.collection.immutable.BitSet

import algebra.lattice._
import cats.algebra.lattice._

package object bitSet extends BitSetInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cats
package algebra
package instances

import algebra.lattice.Bool
import algebra.ring.BoolRing
import algebra.ring.CommutativeRig
import cats.algebra.lattice.Bool
import cats.algebra.ring.BoolRing
import cats.algebra.ring.CommutativeRig

package object boolean extends BooleanInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cats
package algebra
package instances

import algebra.lattice._
import algebra.ring._
import cats.algebra.lattice._
import cats.algebra.ring._

package object byte extends ByteInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package instances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cats
package algebra
package instances

import algebra.lattice.DistributiveLattice
import algebra.ring.Field
import cats.algebra.lattice.DistributiveLattice
import cats.algebra.ring.Field

import java.lang.Math

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cats
package algebra
package instances

import algebra.lattice.DistributiveLattice
import algebra.ring.Field
import cats.algebra.lattice.DistributiveLattice
import cats.algebra.ring.Field
import java.lang.Math

trait FloatInstances extends cats.kernel.instances.FloatInstances {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cats
package algebra
package instances

import algebra.lattice._
import algebra.ring._
import cats.algebra.lattice._
import cats.algebra.ring._

package object int extends IntInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package instances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cats
package algebra
package instances

import algebra.lattice._
import algebra.ring._
import cats.algebra.lattice._
import cats.algebra.ring._

package object long extends LongInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package cats
package algebra
package instances

import scala.annotation.nowarn
import scala.collection.mutable

import algebra.ring._
import cats.algebra.ring._

package object map extends MapInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package instances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cats
package algebra
package instances

import algebra.lattice.GenBool
import algebra.ring.{BoolRng, Semiring}
import cats.algebra.lattice.GenBool
import cats.algebra.ring.{BoolRng, Semiring}

package object set extends SetInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cats
package algebra
package instances

import algebra.lattice._
import algebra.ring._
import cats.algebra.lattice._
import cats.algebra.ring._

package object short extends ShortInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package instances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package instances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package cats
package algebra
package instances

import algebra.ring.CommutativeRing
import cats.algebra.ring.CommutativeRing

package object unit extends UnitInstances

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cats
package algebra
package lattice

import scala.{specialized => sp}
import algebra.ring.CommutativeRig
import cats.algebra.ring.CommutativeRig

/**
* A bounded distributive lattice is a lattice that both bounded and distributive
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package lattice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package object algebra {

type Band[A] = cats.kernel.Band[A]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra
package ring

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra

object Instances {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package cats
package algebra.ring

import algebra.instances.bigInt._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package algebra.laws.platform
package cats.algebra.laws.platform

private[laws] object Platform {
// using `final val` makes compiler constant-fold any use of these values, dropping dead code automatically
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package algebra.laws.platform
package cats.algebra.laws.platform

private[laws] object Platform {
// using `final val` makes compiler constant-fold any use of these values, dropping dead code automatically
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package algebra.laws.platform
package cats.algebra.laws.platform

private[laws] object Platform {
// using `final val` makes compiler constant-fold any use of these values, dropping dead code automatically
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package algebra.laws
package cats.algebra.laws

import cats.kernel._

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package algebra.laws
package cats.algebra.laws

/**
* This object contains Arbitrary instances for types defined in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package algebra.laws
package cats.algebra.laws

import algebra._
import algebra.lattice._
import cats.algebra._
import cats.algebra.lattice._
import org.scalacheck.{Arbitrary, Prop}
import org.scalacheck.Prop._
import org.typelevel.discipline.Laws
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package algebra.laws
package cats.algebra.laws

import cats.kernel._
import cats.kernel.instances.option._
Expand Down
Loading

0 comments on commit 66b8074

Please sign in to comment.