Skip to content

Instantly share code, notes, and snippets.

View evantill's full-sized avatar

Eric Vantillard evantill

View GitHub Profile
@evantill
evantill / gist:5532308
Last active December 17, 2015 01:59
replacing all occurences of Order by Enum failed
import scalaz.Order
import scalaz.syntax.order._
case class MyRange[A: Order](l: A, h: A){
def myMethod(b: MyRange[A]): MyRange[A] = {
MyRange[A](l min b.l, h max b.h)
}
}
object MyRange {
import collection.mutable
import org.specs2.mutable._
class ImplicitiSpec extends Specification {
type Store=Map[String,String]
object Value {
val store = new mutable.HashMap[String,String] with mutable.SynchronizedMap[String,String]