Permalink
Browse files

Use new definitions package structure

  • Loading branch information...
1 parent afcaa01 commit 54ca7430cd519b61c2ce8e54ecd2d656ff177d6b @dialelo dialelo committed Jul 5, 2016
View
@@ -5,7 +5,7 @@ lazy val cats = (project in file("."))
organization := "org.scala-exercises",
name := "exercises-cats",
scalaVersion := "2.11.7",
- version := "0.2.0",
+ version := "0.2.1-SNAPSHOT",
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")
View
@@ -1,2 +1,2 @@
-addSbtPlugin("org.scala-exercises" % "sbt-exercise" % "0.2.0", "0.13", "2.10")
+addSbtPlugin("org.scala-exercises" % "sbt-exercise" % "0.2.1-SNAPSHOT", "0.13", "2.10")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
@@ -14,7 +14,7 @@ import cats.std.all._
*
* @param name applicative
*/
-object ApplicativeSection extends FlatSpec with Matchers with exercise.Section {
+object ApplicativeSection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** This method takes any value and returns the value in the context of
* the functor. For many familiar functors, how to do this is
@@ -42,7 +42,7 @@ import cats.syntax.cartesian._
*
* @param name apply
*/
-object ApplySection extends FlatSpec with Matchers with exercise.Section {
+object ApplySection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** = map =
*
* Since `Apply` extends `Functor`, we can use the `map` method from `Functor`:
@@ -4,7 +4,7 @@ package catslib
*
* @param name cats
*/
-object CatsLibrary extends exercise.Library {
+object CatsLibrary extends org.scalaexercises.definitions.Library {
override def owner = "scala-exercises"
override def repository = "exercises-cats"
@@ -33,7 +33,7 @@ import cats.implicits._
*
* @param name foldable
*/
-object FoldableSection extends FlatSpec with Matchers with exercise.Section {
+object FoldableSection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** = foldLeft =
*
* `foldLeft` is an eager left-associative fold on `F` using the given function.
@@ -67,7 +67,7 @@ import cats.std.list._
*
* @param name functor
*/
-object FunctorSection extends FlatSpec with Matchers with exercise.Section {
+object FunctorSection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** = Using Functor =
*
* == map ==
@@ -26,7 +26,7 @@ import org.scalatest._
*
* @param name identity
*/
-object IdentitySection extends FlatSpec with Matchers with exercise.Section {
+object IdentitySection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** We can freely compare values of `Id[T]` with unadorned
* values of type `T`.
@@ -12,7 +12,7 @@ import MonadHelpers._
*
* @param name monad
*/
-object MonadSection extends FlatSpec with Matchers with exercise.Section {
+object MonadSection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** The name `flatten` should remind you of the functions of the same name on many
* classes in the standard library.
*/
@@ -27,7 +27,7 @@ import MonoidHelpers._
*
* @param name monoid
*/
-object MonoidSection extends FlatSpec with Matchers with exercise.Section {
+object MonoidSection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** First some imports.
*
* {{{
@@ -31,7 +31,7 @@ import cats._
*
* @param name semigroup
*/
-object SemigroupSection extends FlatSpec with Matchers with exercise.Section {
+object SemigroupSection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** Now that you've learned about the `Semigroup` instance for `Int` try to
* guess how it works in the following examples:
*
@@ -81,7 +81,7 @@ import TraverseHelpers._
*
* @param name traverse
*/
-object TraverseSection extends FlatSpec with Matchers with exercise.Section {
+object TraverseSection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** == Choose your effect ==
*
* The type signature of `Traverse` appears highly abstract, and indeed it is - what `traverse` does as it
@@ -162,7 +162,7 @@ import ValidatedHelpers._
*
* @param name validated
*/
-object ValidatedSection extends FlatSpec with Matchers with exercise.Section {
+object ValidatedSection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** When no errors are present in the configuration, we get a `ConnectionParams` wrapped in a `Valid` instance.
*/
def noErrors(res0: Boolean, res1: String, res2: Int) = {
@@ -107,7 +107,7 @@ object XorStyleWithAdts {
*
* @param name xor
*/
-object XorSection extends FlatSpec with Matchers with exercise.Section {
+object XorSection extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
/** More often than not we want to just bias towards one side and call it a day - by convention,
* the right side is most often chosen. This is the primary difference between `Xor` and `Either` -

0 comments on commit 54ca743

Please sign in to comment.