the description for this gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.scalac.frees.dummy | |
import freestyle._ | |
@free trait BasicMath { | |
def add(a: Int, b: Int): FS[Int] | |
def subtract(a: Int, b: Int): FS[Int] | |
def multiply(a: Int, b: Int): FS[Int] | |
} | |
@free trait HighMath { | |
def power(a: Int, b: Int): FS[Int] | |
} | |
@module trait AllTheMath { | |
val basic: BasicMath | |
val high: HighMath | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment