Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package scalatutorial.sections

import scalatutorial.aux.{BankAccount, Note}
import scalatutorial.utils.{BankAccount, Note}

/** @param name classes_vs_case_classes */
object ClassesVsCaseClasses extends ScalaTutorialSection {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package scalatutorial.sections

import scalatutorial.aux.BankAccount
import scalatutorial.utils.BankAccount

/** @param name imperative_programming */
object ImperativeProgramming extends ScalaTutorialSection {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package scalatutorial.sections

import scalatutorial.aux.{Empty, IntSet, NonEmpty}
import scalatutorial.utils.{Empty, IntSet, NonEmpty}

/** @param name object_oriented_programming */
object ObjectOrientedProgramming extends ScalaTutorialSection {
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/scalatutorial/sections/TypeClasses.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

package scalatutorial.sections

import scalatutorial.aux.Rational
import scalatutorial.aux.Sorting.insertionSort
import scalatutorial.utils.Rational
import scalatutorial.utils.Sorting.insertionSort

/** @param name type_classes */
object TypeClasses extends ScalaTutorialSection {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2015-2016 47 Degrees, LLC. <http://www.47deg.com>
*/

package scalatutorial.aux
package scalatutorial.utils

class BankAccount {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2015-2016 47 Degrees, LLC. <http://www.47deg.com>
*/

package scalatutorial.aux
package scalatutorial.utils

abstract class IntSet {
def incl(x: Int): IntSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
* Copyright (C) 2015-2016 47 Degrees, LLC. <http://www.47deg.com>
*/

package scalatutorial.aux
package scalatutorial.utils

case class Note(name: String, duration: String, octave: Int)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2015-2016 47 Degrees, LLC. <http://www.47deg.com>
*/

package scalatutorial.aux
package scalatutorial.utils

class Rational(x: Int, y: Int) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2015-2016 47 Degrees, LLC. <http://www.47deg.com>
*/

package scalatutorial.aux
package scalatutorial.utils

trait Animal {
def fitness: Int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2015-2016 47 Degrees, LLC. <http://www.47deg.com>
*/

package scalatutorial.aux
package scalatutorial.utils

object Sorting {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.scalatest.Spec
import org.scalatest.prop.Checkers
import shapeless.HNil

import scalatutorial.aux.Rational
import scalatutorial.utils.Rational

class TypeClassesSpec extends Spec with Checkers {

Expand Down